Support .jpeg as well as .jpg

This commit is contained in:
Daniel Quinn 2017-10-16 09:00:38 +01:00
parent c5632e5c04
commit e32ed09da3

View File

@ -5,7 +5,7 @@ from .parsers import RasterisedDocumentParser
class ConsumerDeclaration(object):
MATCHING_FILES = re.compile("^.*\.(pdf|jpg|gif|png|tiff?|pnm|bmp)$")
MATCHING_FILES = re.compile("^.*\.(pdf|jpe?g|gif|png|tiff?|pnm|bmp)$")
@classmethod
def handle(cls, sender, **kwargs):