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
1 changed files with 1 additions and 4 deletions

View File

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