diff options
author | Partouf <partouf@gmail.com> | 2018-10-26 14:13:30 +0200 |
---|---|---|
committer | Partouf <partouf@gmail.com> | 2018-10-26 14:13:30 +0200 |
commit | 19748dadcf1dfb43a0d6e1718c5d2f80292dd2ef (patch) | |
tree | c52dbf4a4e47166054920a56b19becc27f2dd896 /lib/compilers | |
parent | f3265e2fbe928011153ec2cae61d3fb70ba6af05 (diff) | |
download | compiler-explorer-19748dadcf1dfb43a0d6e1718c5d2f80292dd2ef.tar.gz compiler-explorer-19748dadcf1dfb43a0d6e1718c5d2f80292dd2ef.zip |
+nl
Diffstat (limited to 'lib/compilers')
-rw-r--r-- | lib/compilers/argument-parsers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index 05f52a7ad..b2914b7ab 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -31,7 +31,7 @@ class BaseParser { return compiler.exec(compiler.compiler.exe, [helpArg]).then(result => { const options = {}; if (result.code === 0) { - const optionFinder = /^\s*(--?[a-z0-9=,[\]<>|-]*)\s*(.*)/i; + const optionFinder = /^\s*(--?[a-z0-9=+,[\]<>|-]*)\s*(.*)/i; let previousOption = false; utils.eachLine(result.stdout + result.stderr, line => { @@ -47,7 +47,7 @@ class BaseParser { previousOption = match[1]; options[previousOption] = { - description: match[2], + description: match[2].trim(), timesused: 0 }; }); |