Skip to content

Commit 2390265

Browse files
committed
fix: fix relative path on windows
1 parent fb43d6b commit 2390265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marker/js-marker/src/main/kotlin/spp/jetbrains/marker/js/service/JavascriptArtifactNamingService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class JavascriptArtifactNamingService : IArtifactNamingService {
5151
val projectBasePath = sourceMark.project.basePath
5252
if (projectBasePath != null) {
5353
val relativePath = sourceMark.sourceFileMarker.psiFile.virtualFile.path.substringAfter(projectBasePath)
54-
locationSource = if (relativePath.startsWith(File.separator)) {
54+
locationSource = if (relativePath.startsWith("/")) {
5555
relativePath.substring(1)
5656
} else {
5757
relativePath

0 commit comments

Comments
 (0)