Created
May 13, 2014 22:22
-
-
Save jnthn/38ba57f278759ea73800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Panda/Builder.pm b/lib/Panda/Builder.pm | |
index b09aa0f..bff2994 100644 | |
--- a/lib/Panda/Builder.pm | |
+++ b/lib/Panda/Builder.pm | |
@@ -25,7 +25,7 @@ sub topo-sort(@modules, %dependencies) { | |
} | |
sub path-to-module-name($path) { | |
- $path.subst(/^'lib/'/, '').subst(/^'lib6/'/, '').subst(/\.pm6?$/, '').subst('/', '::', :g); | |
+ $path.subst(/^'lib'<[/\\]>/, '').subst(/^'lib6'<[/\\]>/, '').subst(/\.pm6?$/, '').subst(/<[/\\]>/, '::', :g); | |
} | |
sub build-order(@module-files) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment