Skip to content

Commit

Permalink
fix: fix relative path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Oct 1, 2022
1 parent fb43d6b commit 2390265
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JavascriptArtifactNamingService : IArtifactNamingService {
val projectBasePath = sourceMark.project.basePath
if (projectBasePath != null) {
val relativePath = sourceMark.sourceFileMarker.psiFile.virtualFile.path.substringAfter(projectBasePath)
locationSource = if (relativePath.startsWith(File.separator)) {
locationSource = if (relativePath.startsWith("/")) {
relativePath.substring(1)
} else {
relativePath
Expand Down

0 comments on commit 2390265

Please sign in to comment.