summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/github-url-from-username-repo/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/github-url-from-username-repo/index.js')
-rw-r--r--deps/npm/node_modules/github-url-from-username-repo/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/node_modules/github-url-from-username-repo/index.js b/deps/npm/node_modules/github-url-from-username-repo/index.js
index 8af2c4f831..46b0bb5139 100644
--- a/deps/npm/node_modules/github-url-from-username-repo/index.js
+++ b/deps/npm/node_modules/github-url-from-username-repo/index.js
@@ -1,9 +1,9 @@
module.exports = getUrl
function getUrl (r) {
- if (!r) return
- if (/^[\w-]+\/[\w-]+$/.test(r))
+ if (!r) return null
+ if (/^[\w-]+\/[\w\.-]+$/.test(r))
return "git://github.com/" + r
else
return null
-} \ No newline at end of file
+}