mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
fix #2599
This commit is contained in:
parent
1c7c703d8b
commit
ea47cae003
@ -1443,10 +1443,13 @@ FilterParser.prototype.parse = function(raw) {
|
||||
s = s.slice(2);
|
||||
|
||||
// convert hostname to punycode if needed
|
||||
// https://github.com/gorhill/uBlock/issues/2599
|
||||
if ( this.reHasUnicode.test(s) ) {
|
||||
var matches = this.reIsolateHostname.exec(s);
|
||||
if ( matches ) {
|
||||
s = matches[1] + punycode.toASCII(matches[2]) + matches[3];
|
||||
s = (matches[1] !== undefined ? matches[1] : '') +
|
||||
punycode.toASCII(matches[2]) +
|
||||
matches[3];
|
||||
//console.debug('µBlock.staticNetFilteringEngine/FilterParser.parse():', raw, '=', s);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user