Permalink
Browse files

Merge pull request #389 from duckduckgo/zaahir/regex-bug-fix

Corrected regex for CamelCase package names
  • Loading branch information...
zachthompson committed Jul 7, 2017
2 parents 390d577 + b2d9e78 commit bb5de8844017b86ebbe53a5e85826c64418e669b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/DuckPAN/DDG.pm
View
@@ -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";
}

0 comments on commit bb5de88

Please sign in to comment.