mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +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 '';
|
||||
|
@ -349,4 +349,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue