Skip to content

Commit

Permalink
Fix cvar pattern replacement (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: allinkdev <allinkdev@users.noreply.github.com>
  • Loading branch information
Earthcomputer and allinkdev committed Sep 11, 2023
1 parent 02244d1 commit 18cf23a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static void loadFile() throws IOException {
}

public static String replaceVariables(String originalString) {
Matcher matcher = VARIABLE_PATTERN.matcher(originalString);
Matcher matcher = VARIABLE_PATTERN.matcher(originalString.replace("\\", "\\\\").replace("$", "\\$"));
StringBuilder builder = new StringBuilder();
while (matcher.find()) {
String group = matcher.group();
Expand Down

0 comments on commit 18cf23a

Please sign in to comment.