Skip to content

Commit ac01e35

Browse files
committed
Use '/' as path segment separator in URLs (OS-independent)
1 parent 01e1c90 commit ac01e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flexmark-test-util/src/main/java/com/vladsch/flexmark/test/util/spec/ResourceLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public String getFileUrl() {
3737

3838
@NotNull
3939
public String getFileDirectoryUrl() {
40-
int pos = fileUrl.lastIndexOf(File.separatorChar);
40+
int pos = fileUrl.lastIndexOf('/');
4141
if (pos > 0) {
4242
return fileUrl.substring(0, pos + 1);
4343
}

0 commit comments

Comments
 (0)