This commit is contained in:
Francisco Hodge 2021-11-11 01:33:27 -08:00
parent ba894c34b2
commit 3b87f1df02

View File

@ -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;
}