amp: fix ranges by using parseInt, simplify regex
0.2.2