RegExp undefined behavior for print(/a(b*)?c/.exec("ac")[1])

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None

      print(/a(b*)?c/.exec("ac")[1])

      should print

      "undefined"

      and not

      ""

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: