santiycr / cssify

XPATH to CSS translator
MIT License
132 stars 46 forks source link

Update cssify.py #8

Closed ghost closed 3 years ago

ghost commented 4 years ago

It wasn't working for xpaths with more than one digits of value for example "//[@id="tab-custom-1"]/div/p[10]", it was working perfactly for "//[@id="tab-custom-1"]/div/p[1]"

I just modified the regex a little. (used quantifier)

santiycr commented 3 years ago

Fixed on latest commit! Needed to use + instead of *, but you were close. Thanks for reporting the issue!