Skip to content

Commit

Permalink
fix: use file name instead of whole path for language guess
Browse files Browse the repository at this point in the history
  • Loading branch information
Anty0 committed Nov 28, 2024
1 parent 25a3c06 commit db433df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ abstract class ImportFileProcessor {
abstract fun process()

val languageNameGuesses: List<String> by lazy {
val fileName = context.file.name
val filePath = context.file.name

val fileName = filePath.substringAfterLast("/")

val result =
arrayOf(
Expand Down

0 comments on commit db433df

Please sign in to comment.