ctran / annotate_models

Annotate Rails classes with schema and routes info
Other
4.41k stars 598 forks source link

Fix backslashes incorrectly escaped #1026

Open alexpech12 opened 2 months ago

alexpech12 commented 2 months ago

Where annotations contain backslashes these are incorrectly interpreted by #sub as special characters when updating existing annotations.

For example, an index condition may include string matching with special characters.

Using the block version of #sub avoids this.