diff --git a/main.ts b/main.ts index 64389b8..c3a88c8 100644 --- a/main.ts +++ b/main.ts @@ -80,7 +80,7 @@ function arrayRotate(arr, reverse, amount) { function matchAbbr(abbrTarget) { console.log("Looking for: " + abbrTarget); for (var abbr in abbreviationKey.target_phrases) { - if (abbreviationKey.target_phrases[abbr] == abbrTarget) { + if (abbreviationKey.target_phrases[abbr].match(abbrTarget)) { return abbr; } else { return "";