Skip to content

Commit

Permalink
Avoid going into normalizePath() for things like "foo/bar.js"
Browse files Browse the repository at this point in the history
  • Loading branch information
hns committed Jun 27, 2011
1 parent 9d08bc1 commit 5cd6f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/ringojs/engine/RhinoEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public Repository findRepository(String path, Repository localPath) throws IOExc
}

public static String normalizePath(String path) {
if (path.indexOf('.') == -1) {
if (path.indexOf("./") == -1) {
return path;
}
boolean absolute = path.startsWith("/");
Expand Down

0 comments on commit 5cd6f58

Please sign in to comment.