Skip to content

Commit 1e58c14

Browse files
committed
Header parser should accept uppercase letters.
1 parent 5f040a1 commit 1e58c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9a-z]+)/,
4-
NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9a-z])/g,
3+
var TOKEN = /([!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z]+)/,
4+
NOTOKEN = /([^!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z])/g,
55
QUOTED = /"((?:\\[\x00-\x7f]|[^\x00-\x08\x0a-\x1f\x7f"])*)"/,
66
PARAM = new RegExp(TOKEN.source + '(?:=(?:' + TOKEN.source + '|' + QUOTED.source + '))?'),
77
EXT = new RegExp(TOKEN.source + '(?: *; *' + PARAM.source + ')*', 'g'),

0 commit comments

Comments
 (0)