Skip to content

Commit 332605c

Browse files
committed
Update search to handle case insensitively
1 parent 160f305 commit 332605c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

browser/search.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function search (state, push) {
9292
const [current] = currentToken
9393

9494
const startsWith = specialTokens.filter(
95-
(x) => x.includes(current) && current !== x
95+
(x) => x.toLowerCase().includes(current.toLowerCase()) && current !== x
9696
)
9797

9898
return html`<p class="straw-suggestions">

0 commit comments

Comments
 (0)