Skip to content

Commit

Permalink
fix windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Feb 1, 2024
1 parent 348adaf commit 671fe5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/src/main/scala/fix/FileNameConsistent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FileNameConsistent extends SyntacticRule("FileNameConsistent") {
case f: Input.VirtualFile =>
ScalaSource(
fullPath = f.path,
name = f.path.split(java.io.File.separatorChar).lastOption.getOrElse("").replace(".scala", "")
name = f.path.split('/').lastOption.getOrElse("").replace(".scala", "")
)
}

Expand Down

0 comments on commit 671fe5e

Please sign in to comment.