We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34968c commit 03dcd95Copy full SHA for 03dcd95
joern-cli/frontends/php2cpg/src/main/scala/io/joern/php2cpg/utils/PathFilter.scala
@@ -10,8 +10,9 @@ import scala.util.matching.Regex
10
class PathFilter(excludeOverrides: Option[List[String]]) {
11
private val logger = LoggerFactory.getLogger(this.getClass)
12
13
- private val startOrSep = s"^([^${File.separator}]+${File.separator})*"
14
- private val anyDirSuffix = s"${File.separator}.*"
+ private val sep = if (File.separator == "/") File.separator else "\\\\"
+ private val startOrSep = s"^([^$sep]+$sep)*"
15
+ private val anyDirSuffix = s"$sep.*"
16
17
def dirExclude(dirName: String): Regex = {
18
s"${startOrSep}${correctPath(dirName)}${anyDirSuffix}".r
0 commit comments