fix(invidious): fix float formating (#5841)

This commit is contained in:
Stavros Kois
2022-12-26 18:49:17 +02:00
committed by GitHub
parent c51ee92236
commit 112bc8a56f
4 changed files with 6 additions and 10 deletions
@@ -4,10 +4,10 @@
Accepted formats are:
- Integers (eg `1`, `2`)
- Floats (eg `1.25`, `1.50`)
- Floats (eg `1.25`, `1.50`, `2.5`)
Regex used to match those: `^[0-9]+(\.[0-9]*)?$`
You can try live [here](https://regex101.com/r/jnZ19W/1)
Regex used to match those: `^[0-9]+(\.[0-9]{1,2})?$`
You can try live [here](https://regex101.com/r/4HI4wW/1)
---