From 9d846cd1e36a31af0150f99cc4f669aca85aeca2 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Tue, 23 May 2017 11:25:42 +0200 Subject: [PATCH] use [\s\S] rather than [^] for Internet Explorer compatibility --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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]+)' // + + ')?' // } + '$' );