panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.61k stars 136 forks source link

Using the updated python format syntax #32

Open geyang opened 6 years ago

geyang commented 6 years ago

Hey panzerdp,

Thanks for this library! I looked through your tests for format. It looks like it is using the old c % format syntax. Is there plan on supporting the new {:03d} kind of string format?

Here is a helpful link for some of the things that are possible:

https://pyformat.info | using string.format() for great good

panzerdp commented 6 years ago

Hey @episodeyang,

I didn't knew about the new format. Just looked a few examples and it looks cool! Definitely it worth an implementation, probably for version 2.1.0.

Thanks!