diff options
author | Matt Godbolt <matt@godbolt.org> | 2021-05-27 23:19:32 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2021-05-27 23:19:32 -0500 |
commit | 4e36d206b4f9d63a8cf6aca4835d734a4a3beb72 (patch) | |
tree | ae13ba25814dc0b205022488002d381a8bc1503d /lib/compilers/argument-parsers.js | |
parent | a465962ab3c5a5c22a49c6954179bc04ae98b253 (diff) | |
download | compiler-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.js | 2 |
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; |