Skip to content

Commit

Permalink
trim matrix strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Oct 14, 2019
1 parent f853128 commit 5163c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/svg/parsers.dart
Expand Up @@ -117,7 +117,7 @@ Matrix4 parseTransform(String transform) {
final RegExp _valueSeparator = RegExp('( *, *| +)');

Matrix4 _parseSvgMatrix(String paramsStr, Matrix4 current) {
final List<String> params = paramsStr.split(_valueSeparator);
final List<String> params = paramsStr.trim().split(_valueSeparator);
assert(params.isNotEmpty);
assert(params.length == 6);
final double a = parseDouble(params[0]);
Expand Down

0 comments on commit 5163c2e

Please sign in to comment.