summaryrefslogtreecommitdiffstats
path: root/src/regex.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-12 13:31:09 +0100
committerwout <wout@impinc.co.uk>2013-03-12 13:31:09 +0100
commit4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b (patch)
tree0300a47ca1b263ae0cd0fdb5fe76218ceb9aa745 /src/regex.js
parent6c6c82ed59533f44f8754b69d47e3b11cd6dd129 (diff)
downloadsvg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.tar.gz
svg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.zip
Added x(), y(), cx(), cy() and matrix
Diffstat (limited to 'src/regex.js')
-rw-r--r--src/regex.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/regex.js b/src/regex.js
index adf82b4..3639358 100644
--- a/src/regex.js
+++ b/src/regex.js
@@ -1,33 +1,33 @@
// Storage for regular expressions
SVG.regex = {
/* 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
+, hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i
/* parse rgb value */
-, rgb: /rgb\((\d+),(\d+),(\d+),([\d\.]+)\)/
+, rgb: /rgb\((\d+),(\d+),(\d+),([\d\.]+)\)/
/* parse hsb value */
-, hsb: /hsb\((\d+),(\d+),(\d+),([\d\.]+)\)/
+, hsb: /hsb\((\d+),(\d+),(\d+),([\d\.]+)\)/
/* test hex value */
-, isHex: /^#[a-f0-9]{3,6}$/i
+, isHex: /^#[a-f0-9]{3,6}$/i
/* test rgb value */
-, isRgb: /^rgb\(/
+, isRgb: /^rgb\(/
/* test hsb value */
-, isHsb: /^hsb\(/
+, isHsb: /^hsb\(/
/* test css declaration */
-, isCss: /[^:]+:[^;]+;?/
+, isCss: /[^:]+:[^;]+;?/
/* test css property */
-, isStyle: /^font|text|leading|cursor/
+, isStyle: /^font|text|leading|cursor/
/* test for blank string */
-, isBlank: /^(\s+)?$/
-
+, isBlank: /^(\s+)?$/
+
} \ No newline at end of file