jsmreese / moment-duration-format

Format function plugin for the Moment Duration object.
MIT License
967 stars 121 forks source link

No possibility to format minus sign #152

Open Valt25 opened 2 years ago

Valt25 commented 2 years ago

For now, the minus sign is added to the formatted string automatically. But for now, there are no tools for its customization.

In particular, I need to set the single space between minus and remaining string. I could not find any tools in this library to implement it. And I would create a wrapper on format result to add additional space.

I think it is good to approach to add such tools, maybe add a specific symbol in the template that is responsible for placing a minus sign in the formatted string.