1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00
This commit is contained in:
gorhill 2016-03-12 01:25:02 -05:00
parent fb551417ed
commit 5a2e9bc1a7

View File

@ -1287,8 +1287,8 @@ FilterBucket.fromSelfie = function() {
/******************************************************************************/ /******************************************************************************/
var FilterParser = function() { var FilterParser = function() {
this.reHostnameRule1 = /^[0-9a-z][0-9a-z.-]*[0-9a-z]$/; this.reHostnameRule1 = /^[0-9a-z][0-9a-z.-]*[0-9a-z]$/i;
this.reHostnameRule2 = /^\**[0-9a-z][0-9a-z.-]*[0-9a-z]\^?$/; this.reHostnameRule2 = /^\**[0-9a-z][0-9a-z.-]*[0-9a-z]\^?$/i;
this.reCleanupHostnameRule2 = /^\**|\^$/g; this.reCleanupHostnameRule2 = /^\**|\^$/g;
this.reHasWildcard = /[\^\*]/; this.reHasWildcard = /[\^\*]/;
this.reCanTrimCarets1 = /^[^*]*$/; this.reCanTrimCarets1 = /^[^*]*$/;