Skip to content

Commit

Permalink
fix lexical queries starting with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Aug 24, 2023
1 parent 6a631fb commit 3dd4d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Thruk/Utils/Status.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,8 @@ sub parse_lexical_filter {
my $copy = $string;
$string = \$copy;
}
${$string} =~ s/^\s+//gmx;
${$string} =~ s/\s+$//gmx;
if(${$string} =~ m/^(.{3})/mx) {
my $separator = $1;
if(substr($separator,0,1) eq substr($separator,1,1) && substr($separator,0,1) eq substr($separator,2,1)) {
Expand Down

0 comments on commit 3dd4d76

Please sign in to comment.