mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 17:26:17 -04:00
style tweaks
This commit is contained in:
parent
58b0d06760
commit
515a17d8f1
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ 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);
|
||||
data = data.split(delimRegex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue