You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unrecognized names such as /\N{LOREM IPSUM}/ and /\p{Name=LOREM IPSUM}/ are allowed. However, unrecognized scripts and blocks are currently a compile-time and run-time error. This suggests that back-deployment of Regex literals might be a problem?
import Foundation
do{tryRegex(#"\p{Script=Kawi}"#)}catch{
error.localizedDescription
}
The localized error description is unhelpful:
The operation couldn’t be completed. (_RegexParser.Source.LocatedError<_RegexParser.Diagnostics.(unknown context at $23808a414).(unknown context at $23808a41c).ErrorDiagnostic> error 1.)
This issue was fixed in pull request #808. However, I'm still worried about back-deployment of Regex literals. Are there compile-time availability checks for the Unicode 15 and 16 scripts? Or will the Swift 5.7 runtime crash, due to an "unrecognized script" fatal error?
The standard library was updated (by @Azoy) to use Unicode 15 data. Should the MissingUnicode.swift APIs also be updated?
(Old blocks are unsupported. New blocks are unrecognized.)
The text was updated successfully, but these errors were encountered: