8000 Pattern matcher groupCount throws · Issue #1727 · scala-js/scala-js · GitHub
[go: up one dir, main page]

Skip to content
Pattern matcher groupCount throws #1727
Closed
@japgolly

Description

@japgolly

The following snippet behaves very differently in Scala.JS vs JVM.

"(a)(b)cd".r.pattern.matcher("").groupCount

In JVM, it prints 2. In JS it throws java.lang.IllegalStateException: No match available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug. Needs to be fixed.duplicateDuplicate of another issue. Closed.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0