Header parser should accept uppercase letters.

This commit is contained in:
James Coglan
2017-11-11 00:44:44 +00:00
parent 5f040a15af
commit 1e58c148cb
+2 -2
View File
@@ -1,7 +1,7 @@
'use strict';
var TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9a-z]+)/,
NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9a-z])/g,
var TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z]+)/,
NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z])/g,
QUOTED = /"((?:\\[\x00-\x7f]|[^\x00-\x08\x0a-\x1f\x7f"])*)"/,
PARAM = new RegExp(TOKEN.source + '(?:=(?:' + TOKEN.source + '|' + QUOTED.source + '))?'),
EXT = new RegExp(TOKEN.source + '(?: *; *' + PARAM.source + ')*', 'g'),