Skip to content

Commit 5f10d99

Browse files
Merge pull request #4 from gradientedge/alert-autofix-2
Potential fix for code scanning alert no. 2: Inefficient regular expression
2 parents a54b976 + e75e285 commit 5f10d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe("CLI integration tests", () => {
105105

106106
expect(result.code).toBe(0);
107107
// Accept versions like '1.2.3', '1.2.3-alpha.1', or '1.2.3+build.123'
108-
expect(result.stdout.trim()).toMatch(/^[A-Za-z0-9.+-]+(?:\.[A-Za-z0-9.+-]+)+$/);
108+
expect(result.stdout.trim()).toMatch(/^[A-Za-z0-9+-]+(?:\.[A-Za-z0-9+-]+)+$/);
109109
});
110110

111111
test("should merge files successfully", async () => {

0 commit comments

Comments
 (0)