Skip to content

Commit

Permalink
[core] escape glob pattern on Windows. Fixes #779
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 25, 2022
1 parent d2e618e commit 039f5ce
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ private void normalizePattern() {
this.pattern = REGEX_PREFIX + ".*" + File.separator + path;
}
}

if (PlatformUtils.isWindows()) {
this.pattern = pattern.replace("/", "\\\\");
}
}

public String getPlatform() {
Expand Down

0 comments on commit 039f5ce

Please sign in to comment.