Skip to content

Commit

Permalink
Fix regression in #5378 (#5379)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy authored Jun 3, 2023
1 parent 8d07c4b commit 8b2c7d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private String replaceLine(String line, final String fullMatch, final String[] m

if (this.replaceSpacesWithUnderscores) {
// Don't replace spaces with underscores in command nor escape underscores.
if (line.startsWith("/")) {
if (!line.startsWith("/")) {
replacer = replacer.replace("_", "\\_").replaceAll("\\s", "_");
}
}
Expand Down

0 comments on commit 8b2c7d7

Please sign in to comment.