railcraft-reborn / railcraft

Redefine your rails
Other
83 stars 18 forks source link

Regex matching in routing tables does not work #200

Closed radostin04 closed 4 months ago

radostin04 commented 4 months ago

Is there an existing issue for this?

Description of the Bug

Regex matching (with the ?= operator for Name and Dest) does not function. Even when the string should be match, a routing detector never produces an output and routing switches never switch

Railcraft Reborn version

1.1.1

NeoForge/Forge version

NeoForge 47.1.101

Minecraft version

1.20.1

Minecraft server

No

To Reproduce

  1. Place a track and a routing detector next to it
  2. Place a locomotive on the track and give it a ticket with a destination such as "Test"
  3. Place a routing table inside the routing detector, with some regex that should match the string set in the ticket. For example, for the destination Test, Dest?=Test, Dest?=Test$ and Dest?=.* should all match.

Expected behavior

The routing detector should produce a redstone signal when the regex defined in the routing table matches the locomotive's ticket

Logs & Environment

No response

Screenshots & Video

image image image image

Edivad99 commented 4 months ago

Try with this: https://github.com/railcraft-reborn/railcraft/actions/runs/8720670970/artifacts/1421635428

radostin04 commented 4 months ago

Thank you, the issue is resolved in that build