Skip to content

Commit

Permalink
Tweak multiline check
Browse files Browse the repository at this point in the history
Unfortunately '$' also matches before a newline at the end of
the string, even if the /s modifier was used. So use \z to really
match the end of the string.
  • Loading branch information
mlschroe committed May 28, 2021
1 parent 5490b4e commit d4d7ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build/Rpm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ sub parse {
# is this a multi-line macro definition?
$line = "$multilinedefine\n$line" if defined $multilinedefine;
undef $multilinedefine;
if ($line =~ /\\$/s) {
if ($line =~ /\\\z/s) {
$multilinedefine = $line; # we need another line!
next;
}
Expand Down

0 comments on commit d4d7ac7

Please sign in to comment.