diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-02-23 22:23:20 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-02-23 22:23:20 +0100 |
commit | 2c33712dc066463ab9741a009e56d9a5c2ffedf6 (patch) | |
tree | 0be4c1368181648d715a35fd077324d3db0e4dc7 /Bugzilla/Markdown.pm | |
parent | a8adffb5ba7161a9ac491cca98d880577c1ab2fc (diff) | |
download | bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.gz bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.xz |
Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies
r=dkl,a=dylan
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; } |