mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Lint errors
This commit is contained in:
parent
a616e46b50
commit
a80b1568ac
1 changed files with 2 additions and 2 deletions
|
@ -185,10 +185,10 @@ class IPv6TransitionAddresses extends Operation {
|
|||
inputs = inputs.filter(Boolean);
|
||||
for (let input = 0; input < inputs.length; input++) {
|
||||
// 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])) {
|
||||
output += ipTransition(inputs[input], false);
|
||||
} else if (/\/24$/.test(inputs[input])) {
|
||||
} else if (/\/24$/.test(inputs[input])) {
|
||||
output += ipTransition(inputs[input], true);
|
||||
} else if (/^([0-9A-F]{2}:){5}[0-9A-F]{2}$/.test(inputs[input].toUpperCase())) {
|
||||
output += macTransition(input.toLowerCase());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue