fix: simplify the regular expression for shortcut matching
fix: simplify the regular expression for shortcut matching

PR-URL: https://github.com/npm/hosted-git-info/pull/76
Credit: da39a3ee5e6b4b0d3255bfef95601890afd80709@nlf
Close: #76
Reviewed-by: da39a3ee5e6b4b0d3255bfef95601890afd80709@isaacs

npm/hosted-git-info