aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2018-10-26 13:04:13 +0200
committerPartouf <partouf@gmail.com>2018-10-26 13:04:13 +0200
commit5c68da0a4954920d3a3fa351ec2f4385bd36085d (patch)
treef09ed22b539d95038a906290dacf7ed626dfd22f /lib/compilers
parent1adca9a5d1f18477b63206c0800fd710c168600d (diff)
downloadcompiler-explorer-5c68da0a4954920d3a3fa351ec2f4385bd36085d.tar.gz
compiler-explorer-5c68da0a4954920d3a3fa351ec2f4385bd36085d.zip
skip on empty lines
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/argument-parsers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 65488f932..5516fd37d 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -37,8 +37,10 @@ class BaseParser {
utils.eachLine(result.stdout + result.stderr, line => {
const match = line.match(optionFinder);
if (!match) {
- if (previousOption) {
+ if (previousOption && (line.trim().length !== 0)) {
options[previousOption].description += "\n" + line.trim();
+ } else {
+ previousOption = false;
}
return;
}