diff options
author | Gokulakrishna <gokulakrishna@rocketmail.com> | 2018-05-28 15:13:33 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 15:13:33 +0530 |
commit | 1e351b9a7c5d7aa4c1dd65ba3f3ef3b45ac5689a (patch) | |
tree | 416bf1e9f0420879b4be7d4c031a8d6a26304839 /js/background.js | |
parent | d9d3600be3cf3aff551e5a8e4acb38239a0507be (diff) |
For ExcludeMatch, switched regex.exec to regex.test
As per Mozilla documentation, regex test() is faster than exec().
For ExcludeMatch, we just need to see true or false, that can be done faster with test() for large exclude patterns.
Diffstat (limited to 'js/background.js')
0 files changed, 0 insertions, 0 deletions