Skip to content

Commit

Permalink
Merge pull request #13 from sanctuary-js/davidchambers/ie
Browse files Browse the repository at this point in the history
use [\s\S] rather than [^] for Internet Explorer compatibility
  • Loading branch information
davidchambers authored May 23, 2017
2 parents fd87841 + 9d846cd commit 086e73a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@
// pattern :: RegExp
var pattern = new RegExp(
'^'
+ '([^]+)' // <namespace>
+ '/' // SOLIDUS (U+002F)
+ '([^]+?)' // <name>
+ '(?:' // optional non-capturing group {
+ '@' // COMMERCIAL AT (U+0040)
+ '([0-9]+)' // <version>
+ ')?' // }
+ '([\\s\\S]+)' // <namespace>
+ '/' // SOLIDUS (U+002F)
+ '([\\s\\S]+?)' // <name>
+ '(?:' // optional non-capturing group {
+ '@' // COMMERCIAL AT (U+0040)
+ '([0-9]+)' // <version>
+ ')?' // }
+ '$'
);

Expand Down

0 comments on commit 086e73a

Please sign in to comment.