[ 
https://issues.apache.org/jira/browse/GROOVY-12707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18139315#comment-18139315
 ] 

ASF GitHub Bot commented on GROOVY-12707:
-----------------------------------------

paulk-asert opened a new pull request, #3237:
URL: https://github.com/apache/groovy/pull/3237

   The named-group check scanned the regex text for (?<name> openers, which 
missed names spelled with COMMENTS-mode whitespace or comments and counted 
openers in quoted text or character classes. Decide by compiling the regex with 
a named backreference appended, which the JDK rejects exactly when the group is 
undefined; a name that is not a legal group name is rejected first. The scan 
now only lists names for the message, each confirmed the same way. 
Matcher.start and Matcher.end are checked like group.




> RegexChecker misreports named groups for regexes in COMMENTS mode
> -----------------------------------------------------------------
>
>                 Key: GROOVY-12707
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12707
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Paul King
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to