Skip to content

Commit c0b3413

Browse files
committed
Fix filter by title or URL in omnibar
1 parent e31928e commit c0b3413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function LOG(level, msg) {
1010

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

0 commit comments

Comments
 (0)