pf-tools/pf-tools: Typo
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Mon Dec 22 14:16:05 UTC 2014
details: http://hg.debian.org/hg/pf-tools/pf-tools/rev/15375eecb0bb
changeset: 1415:15375eecb0bb
user: Thomas Parmelan <tom+pf-tools at ankh.fr.EU.org>
date: Mon Dec 22 15:14:41 2014 +0100
description:
Typo
diffstat:
lib/PFTools/Parser.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 45aa115c09f1 -r 15375eecb0bb lib/PFTools/Parser.pm
--- a/lib/PFTools/Parser.pm Mon Dec 22 15:09:10 2014 +0100
+++ b/lib/PFTools/Parser.pm Mon Dec 22 15:14:41 2014 +0100
@@ -30,7 +30,7 @@
our @EXPORT_OK = qw( parse_ini );
-my $trailing_comment_regex = qr{ \s+ (:? [#] .* )? \z }xms;
+my $trailing_comment_regex = qr{ \s+ (?: [#] .* )? \z }xms;
sub parse_ini {
my ($file) = @_;
@@ -64,7 +64,7 @@
$section->{$key_name} = pop @{$value};
}
- # ..and .all keys starting with '@' must be arrays
+ # ... and all keys starting with '@' must be arrays
elsif ( $key_name =~ m{ \A @ }xms and ref $value ne 'ARRAY' ) {
$section->{$key_name} = [$value];
}
More information about the pf-tools-commits
mailing list