Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created June 16, 2014 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/8b51ba6d9757d84a4957 to your computer and use it in GitHub Desktop.
Save jnthn/8b51ba6d9757d84a4957 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