Permalink
Browse files

[fix] Make GH regex match dot

  • Loading branch information...
1 parent 2126d4a commit 683d14ddf820e7e1660aa020eb989e72cdac6d80 @mmalecki mmalecki committed Oct 19, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/plugins/gh.js
View
@@ -12,10 +12,10 @@ gh.gh = function (data, command) {
if (!command[1]) {
return;
}
- var user = /([a-zA-Z0-9_-]+)/,
- project = /([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)/,
- issue = /([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)#([0-9]+)/,
- SHA = /([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)@([a-fA-F0-9]+)/,
+ var user = /([\w\.-]+)/,
+ project = /([\w\.-]+)\/([\w\.-]+)/,
+ issue = /([\w\.-]+)\/([\w\.-]+)#(\d+)/,
+ SHA = /([\w\.-]+)\/([\w\.-]+)@([a-fA-F0-9]+)/,
result;
if (result = issue.exec(command[1])) {

0 comments on commit 683d14d

Please sign in to comment.