It seems that % is allowed as a _css_lenth_unit but the regex check is only looking for [a-z]+ after all the numbers, and is missing the ability to take in a % symbol
I think the fix could/should be changing the regex pattern to: "^^[0-9]*\\.?[0-9]+[a-z%]+$"
Description
when i try to pass in
"100%"
as a width string intofavicons.icon_svg()
I get aWhat I Did
Tracing through where the error is coming from: https://github.com/posit-dev/py-faicons/blob/main/faicons/_core.py#L185
It seems that
%
is allowed as a_css_lenth_unit
but the regex check is only looking for[a-z]+
after all the numbers, and is missing the ability to take in a%
symbolI think the fix could/should be changing the regex pattern to:
"^^[0-9]*\\.?[0-9]+[a-z%]+$"