From 4f32cc2eea1d0ea860d47bcb31a3fad6894cdd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 2 Nov 2013 13:25:03 +0100 Subject: [PATCH] No need for RegExp group in match statement. --- src/path/PathItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 425f079a..989e603c 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -117,7 +117,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ cmd = part[0], lower = cmd.toLowerCase(); // Match all coordinate values - coords = part.match(/([+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)/g); + coords = part.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g); var length = coords && coords.length; relative = cmd === lower; switch (lower) {