From 708a0ab16ba1bf08c6264cc70634db8e469ed3e2 Mon Sep 17 00:00:00 2001 From: Petrov Anatoly Date: Sat, 6 Jun 2020 21:11:05 +0700 Subject: [PATCH] Scan an optional comma between transformation attributes --- Source/svg/SVGParser.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/svg/SVGParser.swift b/Source/svg/SVGParser.swift index aaf9cbe0..6c79ea89 100644 --- a/Source/svg/SVGParser.swift +++ b/Source/svg/SVGParser.swift @@ -550,6 +550,9 @@ open class SVGParser { break stopParse } + // Skip an optional comma after ")". + _ = scanner.scanString(",", into: nil) + let values = parseTransformValues(valuesString) if values.isEmpty { return transform