Make github regex stop after first space in hash

Otherwise it just keeps going and going and going.

http://stackoverflow.com/a/1400445