The question mark is to screen out any "?" query char in the URL, which should also make it not match since anything after it isn't part of the path.  I don't think GH really uses query params in their URLs, but it seemed better to be thorough.

Making the `/` unescaped inside `[]`s breaks the regexp syntax coloring in Brackets, so it seemed safer to leave it escaped :-)