diff options
author | Nick Schonning <nschonni@gmail.com> | 2022-12-18 10:51:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 00:51:37 +0900 |
commit | 06b68490d1957d680adc0c0c4ed2c84641de2056 (patch) | |
tree | 95127495c9e773fc71a38f3df2a833bfc6d03d09 /streaming/index.js | |
parent | 2889c686108e89a87317505f93b841f5a8a6649b (diff) | |
download | mastodon-main.tar mastodon-main.tar.gz mastodon-main.tar.bz2 mastodon-main.zip |
* Enable ESLint recommended ruleset
* Disable failing ESLint recommended rules
* Remove rules shadowed by eslint:recommended
Diffstat (limited to 'streaming/index.js')
-rw-r--r-- | streaming/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js index 34bf1d1fc..0350c488d 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -717,7 +717,7 @@ const startWorker = async (workerId) => { Object.keys(req.cachedFilters).forEach((key) => { req.cachedFilters[key].regexp = new RegExp(req.cachedFilters[key].keywords.map(([keyword, whole_word]) => { - let expr = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');; + let expr = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); if (whole_word) { if (/^[\w]/.test(expr)) { |