Skip to content

Commit ab796a6

Browse files
Potential fix for code scanning alert no. 2: Inefficient regular expression
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 494d437 commit ab796a6

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)