gogits/gogs — pull request #315 by nuss-justin (2014-07-24 21:20:03+00:00)
Title: Fix #313. Repair broken image extension detection regex.

I failed at using the right function for the test.
This fixes the code.