Ignore casing on eitherMatches

This commit is contained in:
Sam Carlton 2021-03-06 16:33:23 -06:00
parent c031582964
commit 4503cc8f35

View file

@ -5,7 +5,11 @@ export function matchesWholeWord (needle, haystack) {
}
export function eitherMatches (stringA, stringB) {
export function eitherMatches (stringARaw, stringBRaw) {
// Make strings lowercase for more generous comparison
const stringA = stringARaw.toLowerCase()
const stringB = stringBRaw.toLowerCase()
const stringALength = stringA.length
const stringBLength = stringB.length