diff --git a/index.js b/index.js index bd2ef6c..21e1d5f 100644 --- a/index.js +++ b/index.js @@ -106,13 +106,13 @@ // pattern :: RegExp var pattern = new RegExp( '^' - + '([^]+)' // - + '/' // SOLIDUS (U+002F) - + '([^]+?)' // - + '(?:' // optional non-capturing group { - + '@' // COMMERCIAL AT (U+0040) - + '([0-9]+)' // - + ')?' // } + + '([\\s\\S]+)' // + + '/' // SOLIDUS (U+002F) + + '([\\s\\S]+?)' // + + '(?:' // optional non-capturing group { + + '@' // COMMERCIAL AT (U+0040) + + '([0-9]+)' // + + ')?' // } + '$' );