We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12dde4f commit d84662eCopy full SHA for d84662e
client/src/utils.ts
@@ -126,8 +126,13 @@ export function range(start: number, stop: number) {
126
* Used by quicksearch and sidebar filters.
127
*/
128
export function splitQuery(term: string): string[] {
129
- return term
130
- .trim()
131
- .toLowerCase()
132
- .split(/[ ,.]+/);
+ term = term.trim().toLowerCase();
+
+ if (term.startsWith(".") || term.endsWith(".")) {
+ // Dot is probably meaningful.
133
+ return term.split(/[ ,]+/);
134
+ } else {
135
+ // Dot is probably just a word separator.
136
+ return term.split(/[ ,.]+/);
137
+ }
138
}
0 commit comments