Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Return to URI slash instead of OS file separator (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriarroqui authored and jpbelang committed Nov 14, 2019
1 parent ef401a6 commit b5fd847
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/raml/parser/tagresolver/ContextPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import static org.raml.parser.tagresolver.IncludeResolver.INCLUDE_APPLIED_TAG;

import java.io.File;
import java.util.ArrayDeque;
import java.util.Deque;

Expand Down Expand Up @@ -104,7 +103,7 @@ public String resolveRelativePath(Tag tag)

public static String getParentPath(String path)
{
int idx = path.lastIndexOf(File.separatorChar) + 1;
int idx = path.lastIndexOf("/") + 1;
return path.substring(0, idx);
}

Expand Down

0 comments on commit b5fd847

Please sign in to comment.