style tweaks

This commit is contained in:
wjaaaaaaat 2025-02-17 15:00:08 -05:00 committed by GitHub
parent 58b0d06760
commit 515a17d8f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ export function fromHex(data, delim="Auto", byteLen=2, removeNonAlphChars=false,
throw new OperationError("Byte length must be a positive integer");
if (removeNonAlphChars)
data = data.replace(/[^\da-fA-F]/g, '');
data = data.replace(/[^\da-fA-F]/g, "");
if (delim !== "None") {
const delimRegex = delim === "Auto" ? /\s+|0x/gi : Utils.regexRep(delim);