Skip to content

Commit

Permalink
handle windows directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesea committed Apr 28, 2020
1 parent da71270 commit e11492d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ abstract class AbstractContextImporter : ContextImporter {
}

private fun getImportLoadName(initialName: String, imp: String): String {
return if (initialName.contains("/"))
initialName.replaceAfterLast("/", imp)
return if (initialName.contains(File.separator))
initialName.replaceAfterLast(File.separator, imp)
else
imp
}
Expand Down

0 comments on commit e11492d

Please sign in to comment.