commit
09c08bf97f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue