Fix mime.types parsing for nginx

Added characters to key parsing rule which appear in the mime type in mime.types.
This commit is contained in:
Marcel Krüger 2016-05-11 06:16:13 +02:00
parent c799a2d57e
commit 762e9e9db0

View file

@ -17,7 +17,7 @@ class RawNginxParser(object):
right_bracket = Literal("}").suppress()
semicolon = Literal(";").suppress()
space = White().suppress()
key = Word(alphanums + "_/")
key = Word(alphanums + "_/+-.")
# Matches anything that is not a special character AND any chars in single
# or double quotes
value = Regex(r"((\".*\")?(\'.*\')?[^\{\};,]?)+")