Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXMushroom63 committed Oct 23, 2024
1 parent f514406 commit 72ed749
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ globalThis.modapi_postinit = "(" + (() => {
if (!object) {
return null;
}
if (prop in object) {
return prop;
}
var possibleKeys = Object.keys(object).filter(x => { return x.startsWith(prop) });
possibleKeys = possibleKeys.filter(x => {
return Number.isFinite(parseInt(x.substring(prop.length))) || (x.substring(prop.length).length === 0);
Expand Down

0 comments on commit 72ed749

Please sign in to comment.