Lint errors

This commit is contained in:
jb30795 2024-08-09 14:32:31 +01:00
parent a616e46b50
commit a80b1568ac

View file

@ -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])) {