diff options
author | Steve Langasek <vorlon@debian.org> | 2008-08-20 00:20:16 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:24 -0800 |
commit | f3853092b7b42ff4bfb489ff825ee858732f3215 (patch) | |
tree | 4667d081dc4a0c380162cd05eabcff962470b041 | |
parent | 098e7d1255327f696af468765a04837f53937f29 (diff) |
really fix up the regex used for suppressing jump counts to only apply when it
appears between brackets
-rwxr-xr-x | debian/local/pam-auth-update | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index 168bedf8..2373d214 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -436,7 +436,8 @@ sub diff_profiles # FIXME: the key isn't derived from the config # name, so collisions are possible if more # than one config references the same module - $_ =~ s/=[0-9]+/=/g; + + $_ =~ s/(\[[^0-9]*)[0-9]+(.*\])/$1$2/g; # check if this is a match for the current line if ($_ =~ /^\Q$curmod\E\s*(.*)$/) { $found = 1; |