Skip to content

Commit 012eaf6

Browse files
committed
fix fuzzyMatcher: add escape char
1 parent 8ec02b4 commit 012eaf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/content/hints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ const Hints = Module("hints", {
851851
// Build a regex for fuzzy matching with the input.
852852
//
853853
// If the input is 'abc', the regex will be '[^a]*a[^b]*b[^c]c'.
854-
var escapeChar = new Set("()[{.*\\");
854+
var escapeChar = new Set("()[{?.*+^$|\\");
855855
for (var i = 0, j = hintString.length; i < j; i ++) {
856856
var char = hintString[i];
857857

0 commit comments

Comments
 (0)