diff options
author | wout <wout@impinc.co.uk> | 2014-06-17 20:17:01 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-17 20:17:01 +0200 |
commit | 1c50b34aba8fe613f4002cc84b41411c0f546308 (patch) | |
tree | c4ea746d29e650605eec74c17abca0127f37876f /src/regex.js | |
parent | adad1d062678522e684bfe5216f63a3f400bd3c9 (diff) | |
download | svg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.tar.gz svg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.zip |
Added marker, symbol and dynamic referencing
Diffstat (limited to 'src/regex.js')
-rwxr-xr-x | src/regex.js | 3 |
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 |