faberNovel / ad_localize

ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
https://rubygems.org/gems/ad_localize
MIT License
24 stars 8 forks source link

Fix missing escape character #54

Closed nicolasygrand closed 4 years ago

jvigne commented 4 years ago

Linked to #56 , fixed in 4.0.4

jvigne commented 4 years ago

Thank you for this PR. For the record, this PR has not been merged but has inspired the final commit. Using '\%' does not solve the problem because with gsub \& represents the all match. So, % becomes %#37; instead of \%. As mentionned in the ruby string documentation, I have used the block notation to have the wanted \ before all & occurrences.