diff --git a/javascript/index.js b/javascript/index.js index c756dd8..2df4cc5 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -74,6 +74,9 @@ function parse(text) { } else { if(m[7] === undefined && m[8] === undefined) { + if (i + 1 >= j) { + throw new SyntaxError("VDF.parse: un-closed quotes at end of file"); + } line += "\n" + lines[++i]; continue; } diff --git a/javascript/package.json b/javascript/package.json index f3fb20d..476b9a8 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -2,7 +2,7 @@ "author": "Rossen Georgiev ", "name": "simple-vdf", "description": "Package for (de)serialization of Valve's KeyValue format (VDF)", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "homepage": "https://github.com/rossengeorgiev/vdf-parser", "readmeFilename": "README.md",