\s to \s+
This commit is contained in:
parent
0e44e9c5ce
commit
d5d2660655
@ -105,7 +105,7 @@ export function fromHex(data, delim="Auto", byteLen=2) {
|
|||||||
throw new OperationError("Byte length must be a positive integer");
|
throw new OperationError("Byte length must be a positive integer");
|
||||||
|
|
||||||
if (delim !== "None") {
|
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);
|
data = data.split(delimRegex);
|
||||||
} else {
|
} else {
|
||||||
data = [data];
|
data = [data];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user