diff options
Diffstat (limited to 'Bugzilla/Markdown.pm')
-rw-r--r-- | Bugzilla/Markdown.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Markdown.pm b/Bugzilla/Markdown.pm index 5ca37df28..f73e25014 100644 --- a/Bugzilla/Markdown.pm +++ b/Bugzilla/Markdown.pm @@ -506,9 +506,9 @@ sub _UnescapeSpecialChars { # are bound together with underscores, the string has the desired form. sub _has_multiple_underscores { my $string = shift; - return 0 unless defined($string) && length($string); - return 0 if $string =~ /[\t\s]+/; - return 1 if scalar (split /_/, $string) > 1; + return 0 unless $string; + return 0 if $string =~ /\s/; + return 1 if $string =~ /_/; return 0; } |