Skip to content

Commit

Permalink
BlackBox.pm: Fix inadvertently modified regex
Browse files Browse the repository at this point in the history
I had trouble applying the patch to make CP1252 the default; in trying
to do work around that manually, I inadvertently overwrote this recent
change.  Given that I had trouble, I should have tested before
submitting the patch, and hopefully will learn my lesson from this.
  • Loading branch information
khwilliamson committed Feb 5, 2015
1 parent b7746e3 commit 9eb5dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/Simple/BlackBox.pm
Expand Up @@ -243,7 +243,7 @@ sub parse_lines { # Usage: $parser->parse_lines(@lines)
DEBUG > 5 and print "# Parsing line: [$line]\n";

if(!$self->{'in_pod'}) {
if($line =~ m/^=([a-zA-Z]+)/s) {
if($line =~ m/^=([a-zA-Z][a-zA-Z0-9]*)(?:\s|$)/s) {
if($1 eq 'cut') {
$self->scream(
$self->{'line_count'},
Expand Down

0 comments on commit 9eb5dc8

Please sign in to comment.