We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32c074b commit 50e42a3Copy full SHA for 50e42a3
1 file changed
build/templates/setup.yml
@@ -110,7 +110,8 @@ steps:
110
"",
111
"async function rewrite(file, registry) {",
112
" let contents = await fs.readFile(file, 'utf8');",
113
- " contents = contents.replace(/https:\\/\\/registry\\.[^.]+\\.(com|org)\\//g, registry);",
+ " const re = new RegExp('https://registry\\\\.[^.]+\\\\.(com|org)/', 'g');",
114
+ " contents = contents.replace(re, registry);",
115
" await fs.writeFile(file, contents);",
116
"}",
117
0 commit comments