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 5cc5bc7 commit 0f3f700Copy full SHA for 0f3f700
internal/dev_server/ui/src/Flags.tsx
@@ -63,8 +63,17 @@ function Flags({
63
.filter((entry) => {
64
if (!searchTerm) return true;
65
const [flagKey] = entry;
66
- const result = fuzzysort.single(searchTerm.toLowerCase(), flagKey);
67
- return result && result.score > -5000;
+ if (
+ searchTerm.length > 1 &&
68
+ searchTerm.startsWith('"') &&
69
+ searchTerm.endsWith('"')
70
+ ) {
71
+ const substr = searchTerm.slice(1, -1).toLowerCase();
72
+ return flagKey.toLowerCase().includes(substr);
73
+ } else {
74
+ const result = fuzzysort.single(searchTerm.toLowerCase(), flagKey);
75
+ return result && result.score > -5000;
76
+ }
77
})
78
79
0 commit comments