fixing gist for new github gist ids

It looks like github changed the way they build gist ids, previously they were numerical now they are not. This regex appears to work for both and should fix #1505