mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-26 01:36:17 -04:00
style tweaks
This commit is contained in:
parent
58b0d06760
commit
515a17d8f1
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ export function fromHex(data, delim="Auto", byteLen=2, removeNonAlphChars=false,
|
||||||
throw new OperationError("Byte length must be a positive integer");
|
throw new OperationError("Byte length must be a positive integer");
|
||||||
|
|
||||||
if (removeNonAlphChars)
|
if (removeNonAlphChars)
|
||||||
data = data.replace(/[^\da-fA-F]/g, '');
|
data = data.replace(/[^\da-fA-F]/g, "");
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue