Skip to content

Removing character from inverted CharacterSet crashes on Linux #5141

Open
@shadowfacts

Description

@shadowfacts

The following code works as expected on Apple platforms but crashes on Linux:

import Foundation

var chars = CharacterSet.alphanumerics.inverted
chars.remove("-")

Note that this is specifically a result of using the inverted property.

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