1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-25 11:52:51 +01:00

Just use the already existing method

This commit is contained in:
Raymond Hill 2022-10-24 09:30:29 -04:00
parent 1ce59d205a
commit ae5717ea72
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -2984,10 +2984,7 @@ const ExtOptionsIterator = class {
}
if ( i === i0 ) { value.bad = true; }
value.hn = parser.raw.slice(slices[i0+1], slices[i+1]);
if (
hasBits(this.parser.allBits, BITUnicode) &&
parser.reUnicodeChar.test(value.hn)
) {
if ( parser.hasUnicode() && parser.reUnicodeChar.test(value.hn) ) {
value.hn = parser.normalizeHostnameValue(value.hn, 0b0110);
}
if ( i < this.r ) { i += 3; }