summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-07-16 12:18:58 +0200
committerAleš Smodiš <aless@guru.si>2015-07-16 12:18:58 +0200
commitdc90704bca718c2214c782f78259c1bf6cb30f46 (patch)
treedd723f8a95349f4541d26351dd5620aaf49eb2ca /js
parent03a3c13ef4029efd837c621db2d17b55aebd9536 (diff)
Bugfix: parsing of CRLF terminated definitions didn't work.
Diffstat (limited to 'js')
-rw-r--r--js/def_parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/def_parser.js b/js/def_parser.js
index fd34e80..f09ecd1 100644
--- a/js/def_parser.js
+++ b/js/def_parser.js
@@ -134,8 +134,8 @@
}
else if (c === '\r') {
if (pos >= n) return null; // EOF
- pos++;
if (input.charAt(pos) !== '\n') throw new Error("CR character without a trailing LF at character #" + (pos-1));
+ pos++;
count = 0;
is_line_start = true;
row++;