Skip to content

Commit 0aa654d

Browse files
committed
fix: escape / in title for sed
1 parent e2f85c4 commit 0aa654d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rebrander.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ try {
158158
}
159159

160160
// update typedoc config
161-
execSync(`sed -i -e 's/name:.*/name: "${title}",/' typedoc.config.js`);
161+
execSync(`sed -i -e 's/name:.*/name: "${title.replace(/\//g, "\\/")}",/' typedoc.config.js`);
162162

163163
// reinstall dependencies --> this will update the pnpm-lock file as well which we need to add to commit
164164
execSync("pnpm i");

0 commit comments

Comments
 (0)