migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.06k stars 65 forks source link

Replace NSRegularExpressions with native Swift Regexes #406

Closed Zollerboy1 closed 6 months ago

Zollerboy1 commented 6 months ago

I don't think anyone should use NSRegularExpression in Swift anymore, so I replaced the few places where it is used with the native Swift Regexes that are available since Swift 5.7.

migueldeicaza commented 6 months ago

That is what we used initially, but they are not supported on Windows, hence why we went that route.

Once they are supported on Windows, we can change them, but until then, it prevents SwiftGodot from being usable by our Windows users.