Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fix: move negative lookahead before \S
Browse files Browse the repository at this point in the history
  • Loading branch information
daphne-sfdc committed May 27, 2024
1 parent 4a55011 commit 295399e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/validate-issue/lib/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/validate-issue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function run() {
}

// Checking presence of OS and version
const osVersionRegex = /(\*{2}OS and version\*{2}:\s*\S.*\r\n(?!\*\*VS|VS))|(OS and version:\s*\S.*\r\n(?!\*\*VS|VS))/g;
const osVersionRegex = /(\*{2}OS and version\*{2}:\s*(?!\*\*VS|VS)\S.*\r\n)|(OS and version:\s*(?!\*\*VS|VS)\S.*\r\n)/g;

// Search all bodies and get an array of all versions found (first or second capture group)
const osVersions = bodies
Expand Down

0 comments on commit 295399e

Please sign in to comment.