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/golang.js | |
parent | a465962ab3c5a5c22a49c6954179bc04ae98b253 (diff) | |
download | compiler-explorer-4e36d206b4f9d63a8cf6aca4835d734a4a3beb72.tar.gz compiler-explorer-4e36d206b4f9d63a8cf6aca4835d734a4a3beb72.zip |
Prefer regex.test()
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r-- | lib/compilers/golang.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js index bbcba3195..e3a83b5c9 100644 --- a/lib/compilers/golang.js +++ b/lib/compilers/golang.js @@ -148,7 +148,7 @@ export class GolangCompiler extends BaseCompiler { } // Check instruction has a jump prefix - if (ins.match(jumpRe)) { + if (jumpRe.test(ins)) { let label = `${func}_pc${match[2]}`; if (collisions > 0) { label += `_${collisions}`; |