mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-12 07:34:41 +02:00
Fix 'Size'
This commit is contained in:
parent
76aa54f22c
commit
043987bacb
1 changed files with 5 additions and 2 deletions
|
@ -220,7 +220,7 @@ module.exports = class TicFileInfo {
|
||||||
let entry;
|
let entry;
|
||||||
|
|
||||||
lines.forEach(line => {
|
lines.forEach(line => {
|
||||||
keyEnd = line.indexOf(' ');
|
keyEnd = line.search(/\s/);
|
||||||
|
|
||||||
if(keyEnd < 0) {
|
if(keyEnd < 0) {
|
||||||
keyEnd = line.length;
|
keyEnd = line.length;
|
||||||
|
@ -244,10 +244,13 @@ module.exports = class TicFileInfo {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'crc' :
|
case 'crc' :
|
||||||
case 'size' :
|
|
||||||
value = parseInt(value, 16);
|
value = parseInt(value, 16);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'size' :
|
||||||
|
value = parseInt(value, 10);
|
||||||
|
break;
|
||||||
|
|
||||||
default :
|
default :
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue