Permalink
Browse files

Merge pull request #32 from hurricup/master

Fixed bug with classname generation
  • Loading branch information...
2 parents 2733689 + 4603548 commit efef737b33e9930df9fdebf74d16cd592dd2323b @jonswar committed Jan 6, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Mason/Interp.pm
View
@@ -593,7 +593,7 @@ method _collect_paths_for_all_comp_roots ($code) {
method _comp_class_for_path ($path) {
my $classname = substr( $path, 1 );
- $classname =~ s/[^\w]/_/g;
+ $classname =~ s/[^\w\/]/_/g;
$classname =~ s/\//::/g;
$classname = join( "::", $self->component_class_prefix, $classname );
return $classname;

0 comments on commit efef737

Please sign in to comment.