Fix imgur regex for URLs with trailing stuff

For #1650.