Skip to content

Commit

Permalink
case insensitive flag
Browse files Browse the repository at this point in the history
  • Loading branch information
goulash1971 committed Jun 27, 2011
1 parent e4eb6c1 commit f50875c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parseUrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ parseUrn.options = {
loose: ["source","protocol","namespace","specification"]
},
parser: {
strict: /^(?:u|U)(?:r|R)(?:n|N):((?:[a-z][a-z]+)):(([\w#!:.?+=&%@!\-\/])+)?/,
loose: /^((?:[a-z][a-z]+)):((?:[a-z][a-z]+)):(([\w#!:.?+=&%@!\-\/])+)?/
strict: /^urn:((?:[a-z][a-z]+)):(([\w#!:.?+=&%@!\-\/])+)?/i,
loose: /^((?:[a-z][a-z]+)):((?:[a-z][a-z]+)):(([\w#!:.?+=&%@!\-\/])+)?/i
}
};

Expand Down

0 comments on commit f50875c

Please sign in to comment.