From ae5717ea72f247d20f067a8bf9eb0f484e264b25 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 24 Oct 2022 09:30:29 -0400 Subject: [PATCH] Just use the already existing method --- src/js/static-filtering-parser.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index a0809953d..7776103ef 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -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; }