[release-branch.go1.4] go-tour: fix error highlighting when running locally
««« CL 177980043 / 9302243bb57e
go-tour: fix error highlighting when running locally
Fixes #9119.
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/177980043
»»»
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/178060043
diff --git a/static/js/services.js b/static/js/services.js
index 233d876..c507af2 100755
--- a/static/js/services.js
+++ b/static/js/services.js
@@ -38,7 +38,7 @@
if (write.Kind == 'stderr') {
var lines = write.Body.split('\n');
for (var i in lines) {
- var match = lines[i].match(/prog\.go:([0-9]+): ([^\n]*)/);
+ var match = lines[i].match(/.*\.go:([0-9]+): ([^\n]*)/);
if (match !== null) {
editor.highlight(match[1], match[2]);
}