зеркало из https://github.com/mozilla/pjs.git
made more robust with partial output.
This commit is contained in:
Родитель
8138489642
Коммит
f5308be67e
|
@ -355,8 +355,10 @@ public class leaksoup {
|
||||||
int leftBracket = line.indexOf('[');
|
int leftBracket = line.indexOf('[');
|
||||||
if (leftBracket == -1)
|
if (leftBracket == -1)
|
||||||
return line;
|
return line;
|
||||||
int comma = line.indexOf(',', leftBracket + 1);
|
|
||||||
int rightBracket = line.indexOf(']', leftBracket + 1);
|
int rightBracket = line.indexOf(']', leftBracket + 1);
|
||||||
|
if (rightBracket == -1)
|
||||||
|
return line;
|
||||||
|
int comma = line.indexOf(',', leftBracket + 1);
|
||||||
String macPath = line.substring(leftBracket + 1, comma);
|
String macPath = line.substring(leftBracket + 1, comma);
|
||||||
String path = macPath.replace(':', '/');
|
String path = macPath.replace(':', '/');
|
||||||
|
|
||||||
|
|
|
@ -128,8 +128,10 @@ public class tracesoup {
|
||||||
int leftBracket = line.indexOf('[');
|
int leftBracket = line.indexOf('[');
|
||||||
if (leftBracket == -1)
|
if (leftBracket == -1)
|
||||||
return line;
|
return line;
|
||||||
int comma = line.indexOf(',', leftBracket + 1);
|
|
||||||
int rightBracket = line.indexOf(']', leftBracket + 1);
|
int rightBracket = line.indexOf(']', leftBracket + 1);
|
||||||
|
if (rightBracket == -1)
|
||||||
|
return line;
|
||||||
|
int comma = line.indexOf(',', leftBracket + 1);
|
||||||
String macPath = line.substring(leftBracket + 1, comma);
|
String macPath = line.substring(leftBracket + 1, comma);
|
||||||
String path = macPath.replace(':', '/');
|
String path = macPath.replace(':', '/');
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче