We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31928e commit c0b3413Copy full SHA for c0b3413
src/common/utils.js
@@ -10,7 +10,7 @@ function LOG(level, msg) {
10
11
function regexFromString(str, caseSensitive, highlight) {
12
var rxp = null;
13
- const flags = caseSensitive ? "g" : "gi";
+ const flags = caseSensitive ? "" : "i";
14
str = str.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
15
if (highlight) {
16
rxp = new RegExp(str.replace(/\s+/, "\|"), flags);
0 commit comments