You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/05/24 21:46:02 UTC

[plc4x] branch develop updated: fix(bacnet): Removed the "()" around the optional \r as this introduced a new capture group and this broke accessing them by index.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4214495193 fix(bacnet): Removed the "()" around the optional \r as this introduced a new capture group and this broke accessing them by index.
4214495193 is described below

commit 421449519366878e28f294a933afb287a0f90ceb
Author: cdutz <ch...@c-ware.de>
AuthorDate: Tue May 24 23:45:55 2022 +0200

    fix(bacnet): Removed the "()" around the optional \r as this introduced a new capture group and this broke accessing them by index.
---
 protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy b/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
index 28c3302716..405eed3c60 100644
--- a/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
+++ b/protocols/bacnetip/src/main/script/produceTaggedPrivateEnums.groovy
@@ -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 {