mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-15 04:47:05 +01:00
handling another file+line case: "filename on 123"
This commit is contained in:
@@ -1153,11 +1153,11 @@ var ICEcoder = {
|
||||
var shortURL, canOpenFile;
|
||||
var line = 1;
|
||||
if ("undefined" != typeof fileLink) {
|
||||
var re = /^([^ ]*)\s+(on\s+)?line\s+(\d+)/;
|
||||
var re = /^([^ ]*)\s+(on\s+)?(line\s+)?(\d+)/;
|
||||
var reMatch = re.exec(fileLink);
|
||||
if (null !== reMatch)
|
||||
{
|
||||
line = reMatch[3];
|
||||
line = reMatch[4];
|
||||
fileLink = reMatch[1];
|
||||
} else if (fileLink.indexOf(':') > 0){
|
||||
line = fileLink.split(':')[1];
|
||||
@@ -3401,4 +3401,4 @@ var ICEcoder = {
|
||||
top.ICEcoder.focus(top.ICEcoder.editorFocusInstance.indexOf('diff') > -1 ? true : false);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user