Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Corrected regex for CamelCase package names
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed Jul 7, 2017
1 parent 390d577 commit b2d9e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/DuckPAN/DDG.pm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ sub get_blocks_from_current_dir {

# Check if Perl Package name provided
# We don't have Goodie packages with
elsif ($arg =~ /^(DDG::(?:Goodie|Spice|Fathead)::)?[A-Z]+[a-z0-9]*?$/) {
elsif ($arg =~ /^(DDG::(?:Goodie|Spice|Fathead)::)?[A-Z]+[a-zA-Z0-9]*$/) {
push @no_metadata, $arg;
$class = $1 ? $arg : "DDG::$type->{name}::$arg";
}
Expand Down

0 comments on commit b2d9e78

Please sign in to comment.