Uploaded image for project: 'named-regexp'
  1. REGEX-5

Patch for /trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Sprint:

      Description

      --- trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java
      +++ trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java
      @@ -7,7 +7,7 @@
       
       public class NamedPattern {
       
      -        private static final Pattern NAMED_GROUP_PATTERN = Pattern.compile("\\(\\?<(\\w+)>");
      +        private static final Pattern NAMED_GROUP_PATTERN = Pattern.compile("\\(\\?<(\\w+)>|\\((?!\\?\\:)");
       
               private Pattern pattern;
               private String namedPattern;

        Attachments

          Activity

            People

            • Assignee:
              tony19 TonyT
              Reporter:
              Anonymous
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?