allow opening files with name (... on line \d+) - open + goto line

This commit is contained in:
Andrey Grinenko
2015-03-01 18:29:30 +03:00
parent 0583f1ea1c
commit 7d66f32e5b

View File

@@ -1153,11 +1153,11 @@ var ICEcoder = {
var shortURL, canOpenFile;
var line = 1;
if ("undefined" != typeof fileLink) {
var re = /^(.*)\s+line\s+(\d+)/;
var re = /^([^ ]*)\s+(on\s+)?line\s+(\d+)/;
var reMatch = re.exec(fileLink);
if (null !== reMatch)
{
line = reMatch[2];
line = reMatch[3];
fileLink = reMatch[1];
} else if (fileLink.indexOf(':') > 0){
line = fileLink.split(':')[1];