|
|
@ -79,11 +79,14 @@ function arrayRotate(arr, reverse, amount) {
|
|
|
|
|
|
|
|
|
|
|
|
function matchAbbr(abbrTarget) {
|
|
|
|
function matchAbbr(abbrTarget) {
|
|
|
|
console.log("Looking for: " + abbrTarget);
|
|
|
|
console.log("Looking for: " + abbrTarget);
|
|
|
|
console.log(typeof(abbrTarget));
|
|
|
|
|
|
|
|
for (var abbr in abbreviationKey.target_phrases) {
|
|
|
|
for (var abbr in abbreviationKey.target_phrases) {
|
|
|
|
if (abbreviationKey.target_phrases[abbr] == abbrTarget) {
|
|
|
|
if (abbreviationKey.target_phrases[abbr] == abbrTarget) {
|
|
|
|
|
|
|
|
console.log("abbrTarget:" + typeof(abbrTarget));
|
|
|
|
|
|
|
|
console.log("abbr: " + typeof(abbr));
|
|
|
|
return abbr;
|
|
|
|
return abbr;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log("abbrTarget:" + typeof(abbrTarget));
|
|
|
|
|
|
|
|
console.log("abbr: " + typeof(abbr));
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|