Escaped regexp dots

In regexp, . (dot) means "any character", while \. (backslash-dot) means "dot". I corrected your regexps to use github\.com instead of github.com (which allows githubycom for example) and \.git instead of .git. I guess you already know that, I'm just pointing it out.