Skip to content

Commit e2e872b

Browse files
committed
Fix - let read object with empty name
1 parent ed9082a commit e2e872b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/io.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,7 @@ class TFile {
30423042
* console.log(`Read object of type ${obj._typename}`); */
30433043
async readObject(obj_name, cycle, only_dir) {
30443044
const pos = obj_name.lastIndexOf(';');
3045-
if (pos > 0) {
3045+
if (pos >= 0) {
30463046
cycle = parseInt(obj_name.slice(pos + 1));
30473047
obj_name = obj_name.slice(0, pos);
30483048
}

0 commit comments

Comments
 (0)