summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2016-05-01 22:19:13 +0300
committerAaron Crane <arc@cpan.org>2016-05-16 13:29:46 +0100
commita2b4240a80b9c49a8a3c43c2bc84ccfeb6ef63af (patch)
treed6ee70875b3b5ed7231ea46923658e2b438f994e /utils
parent9cea1b144d6a5c138a4576a9d70366d1949a51db (diff)
downloadperl-a2b4240a80b9c49a8a3c43c2bc84ccfeb6ef63af.tar.gz
perlbug: Allow subjects without whitespace in test mode
Passing whitespace in an option through test.pl runperl() doesn't seem to work, so relax the check in test mode (-t) for noninteractive testing.
Diffstat (limited to 'utils')
-rw-r--r--utils/perlbug.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/perlbug.PL b/utils/perlbug.PL
index 9a5048f646..f5f88f9faf 100644
--- a/utils/perlbug.PL
+++ b/utils/perlbug.PL
@@ -880,7 +880,7 @@ sub TrivialSubject {
if ($subject =~
/^(y(es)?|no?|help|perl( (bug|problem))?|bug|problem)$/i ||
length($subject) < 4 ||
- $subject !~ /\s/) {
+ ($subject !~ /\s/ && ! $opt{t})) { # non-whitespace is accepted in test mode
print "\nThe subject you entered wasn't very descriptive. Please try again.\n\n";
return 1;
} else {