mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 08:28:31 +00:00
eslint: unnecessary escape
This commit is contained in:
parent
de5745c0c3
commit
9f532c3359
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ export default {
|
|||
let query = this.query.toLowerCase();
|
||||
|
||||
let flags = new Set;
|
||||
query = query.replace(/(?<=^|\s)@(\S+)(?:\s+|$)/g, (match, flag, index) => {
|
||||
query = query.replace(/(?<=^|\s)@(\S+)(?:\s+|$)/g, (match, flag) => {
|
||||
if ( VALID_FLAGS.includes(flag) ) {
|
||||
flags.add(flag);
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue