diff options
-rw-r--r-- | ext/web/00_infra.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/web/00_infra.js b/ext/web/00_infra.js index 7098c9577..55cd69f7c 100644 --- a/ext/web/00_infra.js +++ b/ext/web/00_infra.js @@ -157,13 +157,9 @@ * @returns {string} */ function byteLowerCase(s) { - return StringPrototypeReplace( - String(s), - /[A-Z]/g, - function byteUpperCaseReplace(c) { - return StringPrototypeToLowerCase(c); - }, - ); + // NOTE: correct since all callers convert to ByteString first + // TODO(@AaronO): maybe prefer a ByteString_Lower webidl converter + return StringPrototypeToLowerCase(s); } /** |