aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/redirect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/redirect.js b/js/redirect.js
index 75f000d..ac06ff7 100644
--- a/js/redirect.js
+++ b/js/redirect.js
@@ -266,7 +266,7 @@ Redirect.prototype = {
if (!this._rxExclude) {
return false;
}
- var shouldExclude = !!this._rxExclude.exec(url);
+ var shouldExclude = this._rxExclude.test(url);
this._rxExclude.lastIndex = 0;
return shouldExclude;
}