summaryrefslogtreecommitdiffstats
path: root/lib/Config
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Config')
-rw-r--r--lib/Config/Grammar.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Config/Grammar.pm b/lib/Config/Grammar.pm
index bd3deea..835b12b 100644
--- a/lib/Config/Grammar.pm
+++ b/lib/Config/Grammar.pm
@@ -316,7 +316,7 @@ sub _prev_level($)
# section name
if (defined $self->{section}) {
if ($self->{section} =~ /\//) {
- $self->{section} =~ s/\/.*?$//;
+ $self->{section} =~ s,/[^/]*$,,;
}
else {
$self->{section} = undef;