Skip to content

Commit fa978c5

Browse files
ashleyshawCopilot
andauthored
Update scripts/verify-docs-commands.js
Co-authored-by: Copilot <[email protected]> Signed-off-by: Ash Shaw <[email protected]>
1 parent d540716 commit fa978c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verify-docs-commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let allGood = true;
3030
DOC_FILES.forEach(docPath => {
3131
if (!fs.existsSync(docPath)) return; // skip to next file if this one doesn't exist
3232
const content = fs.readFileSync(docPath, 'utf8');
33-
const regex = /npm run (\w+[\w:-]*)/g; // match "npm run script:name"
33+
const regex = /npm run (\w+(?:[\w:-]+\w+)*)/g; // match "npm run script:name" (does not end with - or :)
3434
let match;
3535
while ((match = regex.exec(content)) !== null) {
3636
const script = match[1];

0 commit comments

Comments
 (0)