svgutil: fix string prefix

This commit is contained in:
Rotzbua 2023-01-23 00:24:54 +01:00 committed by Florian Festi
parent 66cd7c871e
commit fe934e9375
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@ def getSizeInMM(tree):
def getViewBox(tree):
root = tree.getroot()
m = re.match(r"\s*(-?\d+\.?\d*)\s+"
"(-?\d+\.?\d*)\s+"
"(-?\d+\.?\d*)\s+"
"(-?\d+\.?\d)\s*", root.get("viewBox"))
r"(-?\d+\.?\d*)\s+"
r"(-?\d+\.?\d*)\s+"
r"(-?\d+\.?\d)\s*", root.get("viewBox"))
return [float(m) for m in m.groups()]