Skip to content

CharacterClass.any doesn't match newlines #553

Closed
@hamishknight

Description

@hamishknight

https://github.com/apple/swift-evolution/blob/main/proposals/0363-unicode-for-string-processing.md states that:

  /// This character class is equivalent to the regex syntax "dot"
  /// metacharacter in single-line mode: `(?s:.)`.
  public static var any: CharacterClass { get }

however the following:

Regex {
  CharacterClass.any
}

does not match against a newline input.

rdar://96509234

Metadata

Metadata

Assignees

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