diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index c48058a0..3ac780b8 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -322,7 +322,7 @@ class SimpleKeyboard { (layoutCandidate: string) => { const inputSubstr = input.substring(0, this.getCaretPositionEnd() || 0) || input; - const regexp = new RegExp(`${layoutCandidate}$`, "g"); + const regexp = new RegExp(`${layoutCandidate}$`, "gi"); const matches = [...inputSubstr.matchAll(regexp)]; return !!matches.length; }