mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Ignore casing on eitherMatches
This commit is contained in:
parent
c031582964
commit
4503cc8f35
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue