mirror of
https://github.com/gchq/CyberChef
synced 2025-12-16 00:04:20 +00:00
Lint errors
This commit is contained in:
@@ -185,7 +185,7 @@ class IPv6TransitionAddresses extends Operation {
|
|||||||
inputs = inputs.filter(Boolean);
|
inputs = inputs.filter(Boolean);
|
||||||
for (let input = 0; input < inputs.length; input++) {
|
for (let input = 0; input < inputs.length; input++) {
|
||||||
// if ignore ranges is checked and input is a range, skip
|
// if ignore ranges is checked and input is a range, skip
|
||||||
if ((args[0] && !inputs[input].includes("\/")) || (!args[0])) {
|
if ((args[0] && !inputs[input].includes("/")) || (!args[0])) {
|
||||||
if (/^[0-9]{1,3}(?:\.[0-9]{1,3}){3}$/.test(inputs[input])) {
|
if (/^[0-9]{1,3}(?:\.[0-9]{1,3}){3}$/.test(inputs[input])) {
|
||||||
output += ipTransition(inputs[input], false);
|
output += ipTransition(inputs[input], false);
|
||||||
} else if (/\/24$/.test(inputs[input])) {
|
} else if (/\/24$/.test(inputs[input])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user