From f26dfd92a61c138cb673fcacd9487a484695634f Mon Sep 17 00:00:00 2001 From: kerr Date: Fri, 30 Dec 2022 05:37:51 +0800 Subject: [PATCH] =sbt Make use of `File.separatorChar` to avoid exception. (#80) --- project/ValidatePullRequest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ValidatePullRequest.scala b/project/ValidatePullRequest.scala index 4648e0a0ea..187245eaed 100644 --- a/project/ValidatePullRequest.scala +++ b/project/ValidatePullRequest.scala @@ -46,7 +46,7 @@ object PekkoValidatePullRequest extends AutoPlugin { loadedBuild.value.allProjectRefs.collect { case (_, project) if !ignoredProjects.contains(project.id) => - val directory = project.base.getPath.split("/").last + val directory = project.base.getPath.split(java.io.File.separatorChar).last PathGlobFilter(s"$directory/**") }.fold(new FileFilter { // TODO: Replace with FileFilter.nothing when https://github.com/sbt/io/pull/340 gets released override def accept(pathname: File): Boolean = false