You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I just noticed that some of my svg files, obtained for example from dvisvgm, specify their size with width='{number}pt' and height='{number}pt'. For these files, the regex in
doesn't match due to the different quotation marks.
I imagine one can naively change the regex to have something like ["|'], but then you would be matching incorrect strings like "wrong'. I'm sure this is a solved problem that is beyond my regex knowledge, but it would be nice for this to be fixed.
The text was updated successfully, but these errors were encountered:
Hi, I just noticed that some of my svg files, obtained for example from
dvisvgm
, specify their size withwidth='{number}pt'
andheight='{number}pt'
. For these files, the regex inimagesize_py/imagesize/imagesize.py
Lines 204 to 215 in 8d88ec6
I imagine one can naively change the regex to have something like
["|']
, but then you would be matching incorrect strings like"wrong'
. I'm sure this is a solved problem that is beyond my regex knowledge, but it would be nice for this to be fixed.The text was updated successfully, but these errors were encountered: