Skip to content

Updating mod to 1.0.26 causes regex usage to break聽#68

Description

@hechang27-sprt

Issue type:

  • 馃悰 Bug
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.

Image

Steps to reproduce the problem:

  1. ...

Expected behaviour:


Versions:

  • This mod: Integrated Scripting 1.0.26
  • Minecraft: 1.21.1
  • Mod loader version: Neoforge 21.1.247

Log file:

Activity

  1. rubensworks commented on Aug 21, 2026

    @rubensworks
    Member

    Thanks for reporting!

  2. rubensworks commented on Aug 22, 2026

    @rubensworks
    Member

    Could you share the full log file in which the stacktrace of this error is shown?

  3. moved this from To Do to On hold (awaiting input) in Maintenanceon Aug 22, 2026
  4. added 2 commits that reference this issue on Sep 2, 2026
    c472f14
    79ac86d
  5. moved this from On hold (awaiting input) to Done in Maintenanceon Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions