Skip to content

Commit

Permalink
Fix bug in regex expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 17, 2024
1 parent 27c3c2f commit 361206f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 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.1",
"version": "2.0.2",
"description": "This action sets up a Ghidra environment for use in actions.",
"main": "index.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/installer.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path = require("path");
import io = require("@actions/io");
import { Octokit } from "@octokit/rest";
import * as github_helper from "./github_helper";
import * as installer from "./installer";
import * as fs from "fs";
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 361206f

Please sign in to comment.