Skip to content

Commit

Permalink
Update StringUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TeraNovaLP committed Dec 2, 2020
1 parent 1572ae5 commit b8ec17c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utilities/StringUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

export default class StringUtils {
public static equalsIgnoreCase(source: string, expected: string): boolean {
const pattern = new RegExp(expected, "i");
return pattern.test(source);
return source?.toLowerCase() == expected?.toLowerCase();
}
}

0 comments on commit b8ec17c

Please sign in to comment.