Skip to content

Commit 1b1977d

Browse files
committed
Make sure to add numbers to regex
1 parent 37f698a commit 1b1977d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/docgen-compat/generate-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ async function setProjectYamlPath(api) {
293293
const projectFilePath = PROJECT_FILE_PATH[api];
294294
console.log('replacing', projectFilePath);
295295
const replacedText = defaultTemplateText.replace(
296-
/(<meta name="project_path" value=")[a-z\/_\.]+(" \/>)/,
296+
/(<meta name="project_path" value=")[a-zA-Z0-9\/_\.]+(" \/>)/,
297297
`$1${projectFilePath}$2`
298298
);
299299
await fs.writeFile(defaultTemplatePath, replacedText);

scripts/docgen-compat/theme/layouts/default.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="hide_page_heading" value="true" />
7-
<meta name="project_path" value="/docs/reference/js/v8/_project.yaml" />
7+
<meta name="project_path" value="/docs/reference/node/_project.yaml" />
88
<meta name="book_path" value="/docs/reference/_book.yaml" />
99
<meta name="translation" value="disabled" />
1010
<meta name="page_type" value="reference" />

0 commit comments

Comments
 (0)