Skip to content

Commit

Permalink
illegal escape on replace first
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Feb 23, 2023
1 parent a33b527 commit 43e7f45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ publishing {
}

group 'mil.army.usace.hec'
version '0.0.21'
version '0.0.22'
}
4 changes: 2 additions & 2 deletions src/main/java/usace/wat/plugin/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ private void substituteDataSourcePath(String path) {
switch(prefix){
case "ENV":
String val = System.getenv(parts[1]);
path = path.replaceFirst("{"+result+"}", val);//?
path = path.replaceFirst("\\{"+result+"\\}", val);//?
m = p.matcher(path);
break;
case "ATTR":
String valattr = _payload.getAttributes().get(parts[1]).toString();
path = path.replaceFirst("{"+result+"}", valattr);//?
path = path.replaceFirst("\\{"+result+"\\}", valattr);//?
m = p.matcher(path);
break;
default:
Expand Down

0 comments on commit 43e7f45

Please sign in to comment.