1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-09 22:50:41 +02:00

fix: support upper case search (#3218)

This commit is contained in:
Ziad Beyens
2019-12-04 03:19:15 +01:00
committed by Ian Storm Taylor
parent 2240ce2274
commit b5fe096844

View File

@@ -24,7 +24,7 @@ const MentionExample = () => {
)
const chars = CHARACTERS.filter(c =>
c.toLowerCase().startsWith(search)
c.toLowerCase().startsWith(search.toLowerCase())
).slice(0, 10)
const suggest = target && chars.length > 0