mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 23:34:01 +01:00
allow opening files with name (... on line \d+) - open + goto line
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user