Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-181

Behavior of the expression function "matches" is very surprising

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 3.0.0
    • None
    • Sprint 37

      Description

      As a user I'd expect the matches function to return a boolean indicating whether or not a regular expression matches a string value. Unfortunately the method returns an array of matching groups.

      It would be more intuitive if matches returned a boolean and had a separate method for returning matching groups called "matchingGroups".

        Attachments

          Issue Links

            Activity

              People

              matthew Matthew Swift
              matthew Matthew Swift
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: