tonsky / tongue

Do-it-yourself i18n library for Clojure/Script
Eclipse Public License 1.0
310 stars 20 forks source link

Change regular expression to capture kebab-case map arguments. #23

Closed mchughs closed 5 years ago

mchughs commented 5 years ago

Currently the usage of a map keys, for variable injection into a translation string, are limited to \w characters. This leaves out the "-" character which is used in kebab-case, a staple of Clojure variable names. This pull request extends the capture group to include this "-". As a user of Tongue I expect to be able to use reasonably conventional keys when using this injection functionality.

tonsky commented 5 years ago

Agree, thanks!

tonsky commented 5 years ago

Published as 0.2.8