Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23922

Regexp works only if one group exists.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • mantis-plugin
    • None

      The issue at hand is that Updater.java line 134:
      id = Integer.parseInt(matcher.group(1));
      always goes for the first group.
      When using a pattern like: ((issues?):?(\s*(,|and)?\s*(\d+))+) parsing fails.

      It would be welcome to be able to define the expression of the group the user wishes the matcher to match or define the group number.

            alex_ouzounis Alex Ouzounis
            alex_ouzounis Alex Ouzounis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: