\s to \s+

This commit is contained in:
wjaaaaaaat 2025-02-14 23:32:29 -05:00 committed by GitHub
parent 0e44e9c5ce
commit d5d2660655
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) {
throw new OperationError("Byte length must be a positive integer");
if (delim !== "None") {
const delimRegex = delim === "Auto" ? /\s|0x/gi : Utils.regexRep(delim);
const delimRegex = delim === "Auto" ? /\s+|0x/gi : Utils.regexRep(delim);
data = data.split(delimRegex);
} else {
data = [data];