Skip to content

Commit 09ed1b7

Browse files
committed
Allowing capital E to be used to express floating point numbers in Matrix transformation parameter.
1 parent d314d1d commit 09ed1b7

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

svg-core/src/main/java/com/kitfox/svg/SVGElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static protected AffineTransform parseTransform(String val) throws SVGException
730730
return retXform;
731731
}
732732

733-
private static final Pattern WORD_PATTERN = Pattern.compile("([a-zA-Z]+|-?\\d+(\\.\\d+)?(e-?\\d+)?|-?\\.\\d+(e-?\\d+)?)");
733+
private static final Pattern WORD_PATTERN = Pattern.compile("([a-zA-Z]+|-?\\d+(\\.\\d+)?([eE]-?\\d+)?|-?\\.\\d+([eE]-?\\d+)?)");
734734
static public AffineTransform parseSingleTransform(String val) throws SVGException
735735
{
736736
final Matcher matchWord = WORD_PATTERN.matcher("");
Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)