Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: fix error highlighting when running locally
Browse files Browse the repository at this point in the history
Fixes issue 9119.

LGTM=adg
R=adg
CC=golang-codereviews
https://codereview.appspot.com/177980043
  • Loading branch information
campoy committed Nov 18, 2014
1 parent 19023bf commit def8da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ factory('run', ['$window', 'editor',
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]);
}
Expand Down

0 comments on commit def8da2

Please sign in to comment.