Skip to content

Commit

Permalink
use [\s\S] rather than [^] for Internet Explorer compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed May 23, 2017
1 parent fd87841 commit 9d846cd
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 9d846cd

Please sign in to comment.