content-disposition-attachment
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -66,4 +66,6 @@ class ParseError extends Error { | ||
} | ||
// eslint-disable-next-line | ||
const result = this.eat$0(/^(:?([ !\x23-\x5b\x5d-\x7e\x80-\xff]|\r\n(?:[ \t])+)*|\\[\u0000-\u007f])*/) | ||
this.expect(this.eat$0(/^"/), `expect '"'`) | ||
this.expect(this.eat$0(/^"/), 'expect \'"\'') | ||
// eslint-disable-next-line | ||
return result.replace(/\\([\u0000-\u007f])/g, '$1') | ||
@@ -116,3 +118,3 @@ } | ||
const charset = this.expect(this.eat$0(/^(?:UTF-8|ISO-8859-1)/i), 'unsupported charset') | ||
this.expect(this.eat$0(/^'[a-zA-Z-]*'/), `expect ' [ language ] '`) | ||
this.expect(this.eat$0(/^'[a-zA-Z-]*'/), 'expect \' [ language ] \'') | ||
return this.parseValueChars(charset) | ||
@@ -130,3 +132,3 @@ } | ||
let key = this.expect(this.parseToken(), 'expect token') | ||
this.expect(this.eat$0(/^\s*=\s*/), `expect '='`) | ||
this.expect(this.eat$0(/^\s*=\s*/), 'expect \'=\'') | ||
let value | ||
@@ -133,0 +135,0 @@ if (/\*$/.test(key)) { |
{ | ||
"name": "content-disposition-attachment", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A library to parse \"attachment\"s in Content-Disposition.", | ||
@@ -33,6 +33,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"ava": "^3.13.0", | ||
"rollup": "^0.55.3", | ||
"standard": "^10.0.3" | ||
"standard": "^14.3.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8256
157