Skip to content

Commit

Permalink
Fix RegExp dot escape
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaHOH committed Mar 5, 2022
1 parent 1291c05 commit 8c2255e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bootstrap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion make_glmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ for (var r in res2) {
}

res1 = res1.concat(tld).sort();
console.log('const glmask = "^gitlab\.|^(' + res1.join("|").replace(/\./g,"\\.") + ')$";');
console.log('const glmask = "^gitlab\\\\.|^(' + res1.join("|").replace(/\./g,"\\\\.") + ')$";');

0 comments on commit 8c2255e

Please sign in to comment.