We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d540716 commit fa978c5Copy full SHA for fa978c5
scripts/verify-docs-commands.js
@@ -30,7 +30,7 @@ let allGood = true;
30
DOC_FILES.forEach(docPath => {
31
if (!fs.existsSync(docPath)) return; // skip to next file if this one doesn't exist
32
const content = fs.readFileSync(docPath, 'utf8');
33
- const regex = /npm run (\w+[\w:-]*)/g; // match "npm run script:name"
+ const regex = /npm run (\w+(?:[\w:-]+\w+)*)/g; // match "npm run script:name" (does not end with - or :)
34
let match;
35
while ((match = regex.exec(content)) !== null) {
36
const script = match[1];
0 commit comments