aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2021-05-27 23:19:32 -0500
committerMatt Godbolt <matt@godbolt.org>2021-05-27 23:19:32 -0500
commit4e36d206b4f9d63a8cf6aca4835d734a4a3beb72 (patch)
treeae13ba25814dc0b205022488002d381a8bc1503d /lib/compilers/argument-parsers.js
parenta465962ab3c5a5c22a49c6954179bc04ae98b253 (diff)
downloadcompiler-explorer-4e36d206b4f9d63a8cf6aca4835d734a4a3beb72.tar.gz
compiler-explorer-4e36d206b4f9d63a8cf6aca4835d734a4a3beb72.zip
Prefer regex.test()
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 3f5070d9d..6b139c829 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -220,7 +220,7 @@ export class VCParser extends BaseParser {
utils.eachLine(stdout, line => {
if (line.length === 0) return;
if (line.includes('C/C++ COMPILER OPTIONS')) return;
- if (line.match(/^\s+-.*-$/)) return;
+ if (/^\s+-.*-$/.test(line)) return;
let col1;
let col2;