1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00

- Fixed a potential regex error.

This commit is contained in:
OMGparticles 2023-04-09 21:28:18 -07:00
parent e87cf9eddf
commit efd0b259a3

View file

@ -826,7 +826,7 @@ export default class Input extends Module {
if ( ! emote_lower )
emote_lower = emote_name.toLowerCase();
const term_lower = term.toLowerCase();
const termPosition = emote_lower.search(term_lower);
const termPosition = emote_lower.indexOf(term_lower);
if (termPosition === 0)
return CASE_INSENSITIVE_PREFIX_MATCH;