-
Type:
Improvement
-
Resolution: Unresolved
-
None
-
Affects Version/s: None
-
Component/s: Content Protection
-
Medium
-
None
-
Formats for float and integer rules support units now.
-
None
-
Emptyshow more show less
Problem
Right now Content protection rules are not flexible enough to support floats and integers with units (currencies, measures and alike).
Solution
We will change logic behind integer and float rules processing.
Now users will be able to provide regex that covers prefix and suffix units. But format also should have them.
So end result will be like:
| Lang | regex | format | |-----------------------------------------| | en | /# mm/ | # mm | | uk | /# мм/ | # мм | |-----------------------------------------| | en | /₴#/ | ₴# | | uk | /# грн/ | # грн |