kopia lustrzana https://github.com/backface/turtlestitch
Fix a int 0 bug in green length of block
rodzic
04b4c6678d
commit
78a627df27
|
@ -2407,7 +2407,7 @@ Process.prototype.reportLetter = function (idx, string) {
|
|||
return '';
|
||||
}
|
||||
var i = +(idx || 0),
|
||||
str = (string || '').toString();
|
||||
str = isNil(string) ? '' : string.toString();
|
||||
return str[i - 1] || '';
|
||||
};
|
||||
|
||||
|
@ -2416,7 +2416,7 @@ Process.prototype.reportStringSize = function (data) {
|
|||
return data.length();
|
||||
}
|
||||
|
||||
return (isNil(data) ? '' : data).toString().length;
|
||||
return isNil(data) ? 0 : data.toString().length;
|
||||
};
|
||||
|
||||
Process.prototype.reportUnicode = function (string) {
|
||||
|
|
Ładowanie…
Reference in New Issue