Skip to content

Commit

Permalink
Use invariant path separators
Browse files Browse the repository at this point in the history
We don't want backslashes on Windows.
  • Loading branch information
jp7677 committed Jul 2, 2024
1 parent 2a30434 commit 35ad4e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ fun String.asUrlToFile(relativeTo: String): String =
if (relativeTo == this) "."
else File(this)
.relativeTo(File(relativeTo))
.toString()
.invariantSeparatorsPath

0 comments on commit 35ad4e6

Please sign in to comment.