Skip to content

Commit

Permalink
Fix missing regex flags
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 2, 2023
1 parent e14cb60 commit dfe9d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/contentscript-extra.js
Expand Up @@ -36,7 +36,7 @@ const nonVisualElements = {

const regexFromString = (s, exact = false) => {
if ( s === '' ) { return /^/; }
const match = /^\/(.+)\/([i]?)$/.exec(s);
const match = /^\/(.+)\/([imu]*)$/.exec(s);
if ( match !== null ) {
return new RegExp(match[1], match[2] || undefined);
}
Expand Down

0 comments on commit dfe9d3a

Please sign in to comment.