diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-07 22:05:22 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-08 11:44:37 +0900 |
commit | efa1cb396733ac0bedb7c1e86fd1974fbc801135 (patch) | |
tree | 0653da5117cb10748275acb217758fafd7cd8e4a /src/shared | |
parent | cf0dcf25226611590d76d263b5a4acdc89510d09 (diff) |
Use official redux on content
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/blacklists.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/blacklists.js b/src/shared/blacklists.js index 21e3e14..19ed3f1 100644 --- a/src/shared/blacklists.js +++ b/src/shared/blacklists.js @@ -1,13 +1,13 @@ import * as re from 'shared/utils/re'; const includes = (blacklist, url) => { - let u = new URL(url) + let u = new URL(url); return blacklist.some((item) => { if (!item.includes('/')) { return re.fromWildcard(item).test(u.hostname); } return re.fromWildcard(item).test(u.hostname + u.pathname); }); -} +}; export { includes }; |