aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 3ca94f70..207d6e39 100644
--- a/src/library.js
+++ b/src/library.js
@@ -2564,6 +2564,7 @@ LibraryManager.library = {
break;
}
if (type != 'n') fields++;
+ if (next <= 0) break mainLoop; // End of input.
} else if (format[formatIndex] in __scanString.whiteSpace) {
while (next in __scanString.whiteSpace) {
next = get();