From 671fe5e66729f0860f4af87313e42d158a4fcffc Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Thu, 1 Feb 2024 20:25:36 +0900 Subject: [PATCH] fix windows CI --- rules/src/main/scala/fix/FileNameConsistent.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/src/main/scala/fix/FileNameConsistent.scala b/rules/src/main/scala/fix/FileNameConsistent.scala index e66551e..0a68f91 100644 --- a/rules/src/main/scala/fix/FileNameConsistent.scala +++ b/rules/src/main/scala/fix/FileNameConsistent.scala @@ -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", "") ) }