Jintin / Swimat

An Xcode formatter plug-in to format your swift code.
https://jintin.github.io/Swimat/
MIT License
1.65k stars 89 forks source link

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

Open HassanTaleb90 opened 1 year ago

HassanTaleb90 commented 1 year ago

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 /