mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Bring 'multiple space before comment' fix forward to master
Probably unneeded but better be safe Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
12f48e1b97
commit
a1cd2ba0f3
@ -1077,7 +1077,7 @@ sub delete_jumps ( $$ ) {
|
|||||||
# deleting elements from the array over which we are iterating.
|
# deleting elements from the array over which we are iterating.
|
||||||
#
|
#
|
||||||
for ( my $rule = 0; $rule <= $#{$rules}; $rule++ ) {
|
for ( my $rule = 0; $rule <= $#{$rules}; $rule++ ) {
|
||||||
if ( $rules->[$rule] =~ / -[gj] ${to}( -m comment .*)?\s*$/ ) {
|
if ( $rules->[$rule] =~ / -[gj] ${to}(\s+-m comment .*)?\s*$/ ) {
|
||||||
trace( $fromref, 'D', $rule + 1, $rules->[$rule] ) if $debug;
|
trace( $fromref, 'D', $rule + 1, $rules->[$rule] ) if $debug;
|
||||||
splice( @$rules, $rule, 1 );
|
splice( @$rules, $rule, 1 );
|
||||||
last unless --$refs > 0;
|
last unless --$refs > 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user