Skip to content

Commit

Permalink
Proper regexp escaping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimmi48 committed Oct 12, 2023
1 parent 7f8788e commit 6fdb10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const V80refmanRegex = /^\/distrib\/V8.0\/doc\//;
const stdlibDistribRegex = /^\/distrib\/(.*)\/stdlib\//;
const bugRegexSimplified = /^\/bug\/(.*)/;
const bugRegex = /^\/bugs\/show_bug.cgi?id=(.*)/;
const bugRegex = /^\/bugs\/show_bug\.cgi\?id=(.*)/;
if (stdlibRegex.test(path)) {
window.location = path.replace(stdlibRegex, "/doc/<#CURRENTVERSIONTAG>/stdlib/");
} else if (refmanRegex.test(path)) {
Expand Down

0 comments on commit 6fdb10b

Please sign in to comment.