mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 16:38:31 +00:00
- Fixed a potential regex error.
This commit is contained in:
parent
e87cf9eddf
commit
efd0b259a3
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ export default class Input extends Module {
|
||||||
if ( ! emote_lower )
|
if ( ! emote_lower )
|
||||||
emote_lower = emote_name.toLowerCase();
|
emote_lower = emote_name.toLowerCase();
|
||||||
const term_lower = term.toLowerCase();
|
const term_lower = term.toLowerCase();
|
||||||
const termPosition = emote_lower.search(term_lower);
|
const termPosition = emote_lower.indexOf(term_lower);
|
||||||
|
|
||||||
if (termPosition === 0)
|
if (termPosition === 0)
|
||||||
return CASE_INSENSITIVE_PREFIX_MATCH;
|
return CASE_INSENSITIVE_PREFIX_MATCH;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue