Skip to content

Commit

Permalink
t2acl: Regexp syntax fix to make modern perl happy
Browse files Browse the repository at this point in the history
  • Loading branch information
hessu committed Sep 30, 2023
1 parent c67551b commit b5581f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/t2acl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sub isip6 {

$s = "";
foreach $w (@l) {
if ($w =~ /[0-9a-f]{1-4}/) { return ""; }
if ($w !~ /^[0-9a-f]{1,4}$/) { return ""; }
$repl = '0' x (4 - length($w));
$s .= pack("H4", "$repl$w");
}
Expand Down

0 comments on commit b5581f0

Please sign in to comment.