1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-25 12:08:30 +00:00

- Strict comparisons for style uniformity.

This commit is contained in:
OMGparticles 2023-04-07 17:50:28 -07:00
parent 0cc2dd4407
commit e87cf9eddf

View file

@ -828,13 +828,13 @@ export default class Input extends Module {
const term_lower = term.toLowerCase();
const termPosition = emote_lower.search(term_lower);
if (termPosition == 0)
if (termPosition === 0)
return CASE_INSENSITIVE_PREFIX_MATCH;
if (isUpperChar(emote_name.charAt(termPosition)))
return CAPITALIZED_SECTION_MATCH;
if (termPosition != -1)
if (termPosition !== -1)
return SUBSTRING_MATCH;
return NO_MATCH;
@ -1047,7 +1047,7 @@ export default class Input extends Module {
results_usage.push(element);
else if ( match_type >= CASE_INSENSITIVE_PREFIX_MATCH )
results_prefix.push(element);
else if ( match_type == CAPITALIZED_SECTION_MATCH )
else if ( match_type === CAPITALIZED_SECTION_MATCH )
results_capitalized.push(element);
else
results_other.push(element);