We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed073ef commit 2be36d3Copy full SHA for 2be36d3
playground/polyfill-core.mjs
@@ -164,7 +164,7 @@ export function hexToUint8Array(string) {
164
if (string.length % 2 !== 0) {
165
throw new SyntaxError('string should be an even number of characters');
166
}
167
- if (/[^0-9a-zA-Z]/.test(string)) {
+ if (/[^0-9a-fA-F]/.test(string)) {
168
throw new SyntaxError('string should only contain hex characters');
169
170
let out = new Uint8Array(string.length / 2);
0 commit comments