swiftlang / swift-experimental-string-processing

An early experimental general-purpose pattern matching engine for Swift.
Apache License 2.0
278 stars 47 forks source link

[swift/release/5.10] Adds SPI for a NSRE compatibility mode option (#698) #702

Closed natecook1000 closed 10 months ago

natecook1000 commented 11 months ago

NSRegularExpression matches at the Unicode scalar level, but also matches \r\n sequences with a single . when single-line mode is enabled. This adds a _nsreCompatibility property that enables both of those behaviors, and implements support for the special case handling of ..

Cherry pick of #698.

natecook1000 commented 11 months ago

@swift-ci Please test

natecook1000 commented 10 months ago

@swift-ci Please test Windows platform

natecook1000 commented 10 months ago

@swift-ci Please test Windows platform

natecook1000 commented 10 months ago

@swift-ci Please test Windows platform