Skip to content

Commit 9286d7b

Browse files
authored
enhance(search): split query at dot (#9840)
Allows to find "Window: open() method" with "window.open".
1 parent 5720eba commit 9286d7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: client/src/utils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,5 @@ export function splitQuery(term: string): string[] {
118118
return term
119119
.trim()
120120
.toLowerCase()
121-
.replace(".", " .") // Allows to find `Map.prototype.get()` via `Map.get`.
122-
.split(/[ ,]+/);
121+
.split(/[ ,.]+/);
123122
}

0 commit comments

Comments
 (0)