Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 468bda4

Browse files
atwalg2jasonLaster
authored andcommitted
[QuickOpen] fix for fuzzymatch (#5414)
1 parent bd34dfd commit 468bda4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/QuickOpenModal.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import {
2222
formatSymbols,
2323
formatSources,
2424
parseLineColumn,
25-
formatShortcutResults,
26-
MODIFIERS
25+
formatShortcutResults
2726
} from "../utils/quick-open";
2827
import Modal from "./shared/Modal";
2928
import SearchInput from "./shared/SearchInput";
@@ -335,9 +334,7 @@ export class QuickOpenModal extends Component<Props, State> {
335334
if (newQuery === "") {
336335
return results;
337336
}
338-
if (Object.keys(MODIFIERS).includes(query[0])) {
339-
newQuery = query.slice(1, query.length);
340-
}
337+
newQuery = query.replace(/[@:#?]/gi, " ");
341338

342339
return results.map(result => {
343340
return {

0 commit comments

Comments
 (0)