aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.js')
-rwxr-xr-xsrc/regex.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/regex.js b/src/regex.js
index c75b46f..c78d9f3 100755
--- a/src/regex.js
+++ b/src/regex.js
@@ -1,12 +1,7 @@
// Storage for regular expressions
SVG.regex = {
- /* test a given value */
- test: function(value, test) {
- return this[test].test(value)
- }
-
/* parse unit value */
-, unit: /^(-?[\d\.]+)([a-z%]{0,2})$/
+ unit: /^(-?[\d\.]+)([a-z%]{0,2})$/
/* parse hex value */
, hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i