Skip to content

Commit

Permalink
Fix semver check
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 17, 2024
1 parent ec6feef commit 27c3c2f
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 @@ -35867,7 +35867,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
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 regexVersion = new RegExp("^\d+(\.\d+)*(\.\d+)*$");
const regexSha256sum = new RegExp("^[da-fA-F]{64}$");
function paramCheck(paramVersion, paramSha256sum, paramDownloadUrl) {
// Validate version parameter
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.0",
"version": "2.0.1",
"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 @@ -2,7 +2,7 @@ import * as core from "@actions/core";
import * as github_helper from "./github_helper";
import * as installer from "./installer";

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

function paramCheck(
Expand Down

0 comments on commit 27c3c2f

Please sign in to comment.