Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect format with new Regular expressions (Swift 5.7+) #243

Open
HassanTaleb90 opened this issue Dec 17, 2022 · 0 comments
Open

Incorrect format with new Regular expressions (Swift 5.7+) #243

HassanTaleb90 opened this issue Dec 17, 2022 · 0 comments

Comments

@HassanTaleb90
Copy link

HassanTaleb90 commented Dec 17, 2022

Swift 5.7+ (New Regular expressions)

Code example:
let search1 = /My name is (.+?) and I'm (\d+) years old./

After Formatting:
let search1 = / My name is (. + ?) and I'm (\d +) years old. /

Issue:
There is a one space between / and the first character and a space between last character and /

expected:
No spaces between / and the first character and between the last character and /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant