Skip to content

CharacterClass.anyUnicodeScalar crashes #538

@hamishknight

Description

@hamishknight

For the following:

import RegexBuilder

let r = Regex {
  CharacterClass.anyUnicodeScalar
}
_ = try! r.wholeMatch(in: "x")

Crashes with:

Fatal error: Should have been handled by tree conversion

However it's not clear this API should still exist, as it was removed from https://github.com/apple/swift-evolution/blob/main/proposals/0363-unicode-for-string-processing.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions