Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created May 13, 2014 22:22
Show Gist options
  • Save jnthn/38ba57f278759ea73800 to your computer and use it in GitHub Desktop.
Save jnthn/38ba57f278759ea73800 to your computer and use it in GitHub Desktop.
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