Skip to content

Commit

Permalink
[fix]: unscaped left brace warning
Browse files Browse the repository at this point in the history
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/({ <-- HERE )/ at /usr/local/bin/betty-style line 3916.
  • Loading branch information
dev-loup authored and Mattrack committed Jul 31, 2020
1 parent 60cead1 commit 17fa4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betty-style.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3913,7 +3913,7 @@ sub process {

# check number of functions
# and number of lines per function
if ($line =~ /({)/g) {
if ($line =~ /(\{)/g) {
$inscope += $#-;
if ($funcprotovalid && $inscope == 1) {
$infunc = 1;
Expand Down

0 comments on commit 17fa4fe

Please sign in to comment.