Skip to content

Commit

Permalink
Fix filter by title or URL in omnibar
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed Dec 7, 2024
1 parent e31928e commit c0b3413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function LOG(level, msg) {

function regexFromString(str, caseSensitive, highlight) {
var rxp = null;
const flags = caseSensitive ? "g" : "gi";
const flags = caseSensitive ? "" : "i";
str = str.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
if (highlight) {
rxp = new RegExp(str.replace(/\s+/, "\|"), flags);
Expand Down

0 comments on commit c0b3413

Please sign in to comment.