Skip to content
Snippets Groups Projects
Unverified Commit ad73a404 authored by shall0pass's avatar shall0pass Committed by GitHub
Browse files

[Goals] Allow decimal in percent templates (#2689)

* allow decimal in percent templates

* release note
parent 4ed9f4ff
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ d 'digit' = [0-9] ...@@ -61,7 +61,7 @@ d 'digit' = [0-9]
number 'number' = $(d+) number 'number' = $(d+)
positive = $([1-9][0-9]*) positive = $([1-9][0-9]*)
amount 'amount' = currencySymbol? _? amount: $(d+ ('.' (d d?)?)?) { return +amount } amount 'amount' = currencySymbol? _? amount: $(d+ ('.' (d d?)?)?) { return +amount }
percent 'percentage' = percent: $(d+) _? '%' { return +percent } percent 'percentage' = percent: $(d+ ('.' (d+)?)?) _? '%' { return +percent }
year 'year' = $(d d d d) year 'year' = $(d d d d)
month 'month' = $(year '-' d d) month 'month' = $(year '-' d d)
day 'day' = $(d d) day 'day' = $(d d)
......
---
category: Enhancements
authors: [shall0pass]
---
Goals: Enable decimals for percentage templates.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment