Skip to content

Commit

Permalink
fix(bacnet): Removed the "()" around the optional \r as this introduc…
Browse files Browse the repository at this point in the history
…ed a new capture group and this broke accessing them by index.
  • Loading branch information
chrisdutz committed May 24, 2022
1 parent 3945014 commit 4214495
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import org.apache.maven.project.MavenProject
project = (MavenProject) project
def bacnetEnumsFile = new File(project.basedir, "src/main/resources/protocols/bacnetip/bacnet-private-enums.mspec")
foundEnums = []
enumPattern = ~/\[enum \w+ \d+ (\w+)(\r)?\n.*' *([\w_]+)/
enumPattern = ~/\[enum \w+ \d+ (\w+)\r?\n.*' *([\w_]+)/
matcher = bacnetEnumsFile.text =~ enumPattern
if (matcher.find()) {
matcher.each {
Expand Down

0 comments on commit 4214495

Please sign in to comment.