swift-syntax icon indicating copy to clipboard operation
swift-syntax copied to clipboard

Add fix-it for a regex that starts or ends with a space

Open hamishknight opened this issue 2 years ago • 1 comments

Description

We ought to provide a fix-it for a regex such as / x/ or / x/ to use an extended literal instead e.g #/ x/#. For the space at the start we could also suggest to insert a backslash. This depends on #1463 being merged first.

Steps to Reproduce

No response

hamishknight avatar Mar 31 '23 13:03 hamishknight

rdar://107469888

ahoppen avatar Mar 31 '23 13:03 ahoppen