You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updating mod to 1.0.26 causes regex usage to break #68
tegratedscripting.d.ts" />
// const matchImport = /^apotheosis:gem$|^reliquary:witch_hat$|^irons_spellbooks:scroll$|^minecraft:tipped_arrow$|^supplementaries:quiver$|^trophymanager:trophy$|^aether:.+_gloves/
// `matchImport.test(itemId)` causes the bug
const filter = new Set([
"apotheosis:gem",
"reliquary:witch_hat",
"irons_spellbooks:scroll",
"minecraft:tipped_arrow",
"supplementaries:quiver",
"trophymanager:trophy",
])
/**
*
* @param {import("../../integratedscripting").ValueItemstack} item
*/
function filterDrops(item) {
const tags = item.tags();
const itemId = idContext.ops.uniquely_namedUniqueName(item);
return matchImport.test(itemId) || tags.some((tag) => tag === "c:armors" || tag === "c:tools");
// return filter.has(itemId) || tags.some((tag) => tag === "c:armors" || tag === "c:tools");
}
Short description:
Using regex in js code causes error in the screenshot. This bug only appeared when I updated to ATM 8.0 / Integrated Scripting 1.0.26. Regex worked fine on 1.0.24.
Activity
rubensworks commentedon Aug 21, 2026
Thanks for reporting!
rubensworks commentedon Aug 22, 2026
Could you share the full log file in which the stacktrace of this error is shown?
Pre-initialize TRegex in the Graal fallback classloader
Fix error when using regexes (#72)