aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/golang.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js
index e4b10dff8..94c84e964 100644
--- a/lib/compilers/golang.js
+++ b/lib/compilers/golang.js
@@ -28,7 +28,7 @@ const BaseCompiler = require('../base-compiler'),
class GolangCompiler extends BaseCompiler {
convertNewGoL(code) {
const re = /^\s+(0[xX]?[0-9A-Za-z]+)?\s?[0-9]+\s*\(([^:]+):([0-9]+)\)\s*([A-Z]+)(.*)/;
- const reUnknown = /^\s+(0[xX]?[0-9A-Za-z]+)?\s?[0-9]+\s*\(<unknown line number>)\s*([A-Z]+)(.*)/;
+ const reUnknown = /^\s+(0[xX]?[0-9A-Za-z]+)?\s?[0-9]+\s*\(<unknown line number>\)\s*([A-Z]+)(.*)/;
let prevLine = null;
let file = null;
let fileCount = 0;