aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.js
diff options
context:
space:
mode:
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