diff options
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 |