Skip to content

Commit

Permalink
Update validation regex and bump to 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Apr 20, 2021
1 parent 0e28ff8 commit 95e6f30
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.4.1
## Fixes
- #287 Update VERSION regex to restrict on digits and dot

## 1.4.0
### Features
- #282 Add checksum verification of bash script
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -49280,7 +49280,7 @@ var calculateChecksum = function (body, i) {
return shasum.digest('hex') + " codecov";
};
var getVersion = function (body) {
var regex = /VERSION="(.*)+"/g;
var regex = /VERSION="([\d\.]+)"/g;
var match = regex.exec(body);
return match ? match[1] : null;
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "codecov-action",
"version": "1.4.0",
"version": "1.4.1",
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/validate.ts
Expand Up @@ -50,7 +50,7 @@ const calculateChecksum = (body, i) => {
};

const getVersion = (body) => {
const regex = /VERSION="(.*)+"/g;
const regex = /VERSION="([\d\.]+)"/g;
const match = regex.exec(body);
return match ? match[1] : null;
};
Expand Down

0 comments on commit 95e6f30

Please sign in to comment.