Skip to content

Commit

Permalink
Fix bug in regex expressions, again
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 17, 2024
1 parent 361206f commit 679b733
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35868,7 +35868,7 @@ const core = __importStar(__nccwpck_require__(2186));
const github_helper = __importStar(__nccwpck_require__(6932));
const installer = __importStar(__nccwpck_require__(2574));
const regexVersion = new RegExp("^\\d+(\\.\\d+)*(\\.\\d+)*$");
const regexSha256sum = new RegExp("^[da-fA-F]{64}$");
const regexSha256sum = new RegExp("^[\\da-fA-F]{64}$");
function paramCheck(paramVersion, paramSha256sum, paramDownloadUrl) {
// Validate version parameter
if (!paramDownloadUrl &&
Expand Down
4 changes: 2 additions & 2 deletions 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-ghidra",
"version": "2.0.2",
"version": "2.0.3",
"description": "This action sets up a Ghidra environment for use in actions.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/setup-ghidra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as github_helper from "./github_helper";
import * as installer from "./installer";

const regexVersion = new RegExp("^\\d+(\\.\\d+)*(\\.\\d+)*$");
const regexSha256sum = new RegExp("^[da-fA-F]{64}$");
const regexSha256sum = new RegExp("^[\\da-fA-F]{64}$");

function paramCheck(
paramVersion: string,
Expand Down

0 comments on commit 679b733

Please sign in to comment.