Commit 6c95c1ab authored by deuce's avatar deuce
Browse files

Fix backref replacement.

parent 87c355d3
......@@ -5247,7 +5247,7 @@ function SYNCJSLINT(argc, argv)
tmpVar2 = myResult.warnings[i];
writeln("-----");
tmpVar2.message = tmpVar2.message.replace(/\bline ([0-9]+)/g, function(m, l) {
return index[tmpVar2.line];
return index[parseInt(l, 10)];
});
writeln(index[tmpVar2.line]+"@"+tmpVar2.column+": "+tmpVar2.message);
writeln(all_lines[tmpVar2.line]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment