summaryrefslogtreecommitdiffstats
path: root/src/regex.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-17 20:17:01 +0200
committerwout <wout@impinc.co.uk>2014-06-17 20:17:01 +0200
commit1c50b34aba8fe613f4002cc84b41411c0f546308 (patch)
treec4ea746d29e650605eec74c17abca0127f37876f /src/regex.js
parentadad1d062678522e684bfe5216f63a3f400bd3c9 (diff)
downloadsvg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.tar.gz
svg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.zip
Added marker, symbol and dynamic referencing
Diffstat (limited to 'src/regex.js')
-rwxr-xr-xsrc/regex.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regex.js b/src/regex.js
index 433952b..13f62d8 100755
--- a/src/regex.js
+++ b/src/regex.js
@@ -8,6 +8,9 @@ SVG.regex = {
/* parse rgb value */
, rgb: /rgb\((\d+),(\d+),(\d+)\)/
+
+ /* parse reference id */
+, reference: /#([a-z0-9\-_]+)/i
/* test hex value */
, isHex: /^#[a-f0-9]{3,6}$/i