diff --git a/project/ValidatePullRequest.scala b/project/ValidatePullRequest.scala index 6967041276..4648e0a0ea 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(System.getProperty("file.separator")).last + val directory = project.base.getPath.split("/").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