Skip to content

Commit b08f692

Browse files
committed
adding - to support kebab case attributes
1 parent c52f561 commit b08f692

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/usace/cc/plugin/api/Substituter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static EmbeddedVar matcherToEmbeddedVar(Matcher matcher){
5050
}
5151

5252
private static final Pattern substitutionPattern = Pattern.compile(
53-
"\\{(ATTR|VAR|ENV)::([a-zA-Z_][a-zA-Z0-9_]*)(?:" +
53+
"\\{(ATTR|VAR|ENV)::([a-zA-Z_][a-zA-Z0-9_-]*)(?:" +
5454
"(\\[\\s*\\])" + // group 3: captures "[]" when present
5555
"|\\[\\s*([0-9]+)\\s*\\]" + // group 4: numeric index
5656
"|\\[\\s*'([^']*)'\\s*\\]" + // group 5: single-quoted key

0 commit comments

Comments
 (0)