Replaced a regex with a string comparison, since the regex could only
Dave Rolsky [Sat, 17 Nov 2007 23:32:06 +0000 (23:32 +0000)]
match one string.

lib/Class/MOP/Class.pm

index ee65f1d..403e5e8 100644 (file)
@@ -78,7 +78,7 @@ sub construct_class_instance {
 
     # now create the metaclass
     my $meta;
-    if ($class =~ /^Class::MOP::Class$/) {
+    if ($class eq 'Class::MOP::Class') {
         no strict 'refs';
         $meta = bless {
             # inherited from Class::MOP::Package