mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Lint errors
This commit is contained in:
parent
a616e46b50
commit
a80b1568ac
1 changed files with 2 additions and 2 deletions
|
@ -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])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue