wagtail / Willow

A wrapper that combines the functionality of multiple Python image libraries into one API
https://willow.wagtail.org/
BSD 3-Clause "New" or "Revised" License
273 stars 53 forks source link

Fix `NUMBER_PATTERN` regex for parsing SVG viewboxes #128

Closed jams2 closed 1 year ago

jams2 commented 1 year ago

Fixes #127

The NUMBER_PATTERN in the SVG viewbox regular expression was missing the optional + or - in the final integer production.

The definition for number, as used in SVG attributes, can be found here: