import re

image_file_regex = re.compile('([-\w]+\.(?:jpg|jpeg|gif|png|svg))',
                              re.IGNORECASE)

@@ -40,16 +40,18 @@
 e('(%5B-%5Cw
+%5Cs
 %5D+%5C.(?:j

Allow whitespace in image filenames (#357)