From 99fe93aa2675383636443ff6d5f0c07d1129751f Mon Sep 17 00:00:00 2001 From: kitfox Date: Wed, 29 Oct 2014 23:17:19 +0000 Subject: Fixing parsing for transform elements. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@188 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/SVGElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java index 62c7ef3..f794f26 100644 --- a/src/main/java/com/kitfox/svg/SVGElement.java +++ b/src/main/java/com/kitfox/svg/SVGElement.java @@ -745,7 +745,7 @@ abstract public class SVGElement implements Serializable static public AffineTransform parseSingleTransform(String val) throws SVGException { - final Matcher matchWord = Pattern.compile("[-.\\w]+").matcher(""); + final Matcher matchWord = Pattern.compile("([a-zA-Z]+|-?\\d+(\\.\\d+)?|-?\\.\\d+)").matcher(""); AffineTransform retXform = new AffineTransform(); -- cgit v1.2.3-55-g7522