mirror of
https://github.com/gchq/CyberChef
synced 2025-01-06 01:28:48 +00:00
fixed linting
This commit is contained in:
parent
66cbc6908a
commit
c79bf5caaf
1 changed files with 2 additions and 2 deletions
|
@ -114,9 +114,9 @@ class FromBase85 extends Operation {
|
||||||
.map((chr, idx) => {
|
.map((chr, idx) => {
|
||||||
const digit = alphabet.indexOf(chr);
|
const digit = alphabet.indexOf(chr);
|
||||||
if (digit < 0 || digit > 84) {
|
if (digit < 0 || digit > 84) {
|
||||||
if (chr === "z"){
|
if (chr === "z") {
|
||||||
// Pass (Ignore character)
|
// Pass (Ignore character)
|
||||||
}else{
|
} else {
|
||||||
throw `Invalid character '${chr}' at index ${i + idx}`;
|
throw `Invalid character '${chr}' at index ${i + idx}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue