From a64862be28b1209204f7379785d708cdf160e807 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 31 Mar 2023 12:38:39 -0500 Subject: [PATCH] First working build:tm: --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index c3a88c8..291c8f0 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].match(abbrTarget)) { + if (abbreviationKey.target_phrases[abbr].test(abbrTarget)) { return abbr; } else { return "";