@fast-csv/parse
Advanced tools
Comparing version 4.1.5 to 4.1.6
@@ -24,3 +24,3 @@ "use strict"; | ||
if (!scanner.hasMoreData) { | ||
throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote}' in line: at '${scanner.lineFromCursor.replace(/[r\n]/g, "\\n'")}'`); | ||
throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote}' in line: at '${scanner.lineFromCursor.replace(/[\r\n]/g, "\\n'")}'`); | ||
} | ||
@@ -51,3 +51,5 @@ return null; | ||
// the quote and advance to that character | ||
if (tokenFollowingEscape !== null && isTokenQuote(tokenFollowingEscape, parserOptions)) { | ||
if (tokenFollowingEscape !== null && | ||
(isTokenQuote(tokenFollowingEscape, parserOptions) || | ||
isTokenEscapeCharacter(tokenFollowingEscape, parserOptions))) { | ||
characters.push(tokenFollowingEscape.token); | ||
@@ -54,0 +56,0 @@ nextToken = tokenFollowingEscape; |
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.1.6](https://github.com/C2FO/fast-csv/compare/v4.1.5...v4.1.6) (2020-05-15) | ||
### Bug Fixes | ||
* **parse:** Handle escaped escape properly [#340](https://github.com/C2FO/fast-csv/issues/340) ([78d9b16](https://github.com/C2FO/fast-csv/commit/78d9b160152ee399f31086cc6b5f66a7ca7f9e24)) | ||
## [4.1.5](https://github.com/C2FO/fast-csv/compare/v4.1.4...v4.1.5) (2020-05-15) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@fast-csv/parse", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "fast-csv parsing package", | ||
@@ -56,7 +56,7 @@ "keywords": [ | ||
"@types/lodash.uniq": "4.5.6", | ||
"@types/sinon": "9.0.0", | ||
"@types/sinon": "9.0.1", | ||
"lodash.partition": "4.6.0", | ||
"sinon": "9.0.2" | ||
}, | ||
"gitHead": "a71e712250ce885b71be7a2ef453820240dff3e6" | ||
"gitHead": "c57fff4e957f791504be591dc47bb5a5442d870c" | ||
} |
Sorry, the diff of this file is not supported yet
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
82517
1207