[GH-ISSUE #4237] [Issue]: Regex hiding only affects the first chat message #2292

Closed
opened 2026-10-21 05:47:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4237

Originally assigned to: @SpicyMarinara on GitHub.

Summary

A display-only regex with an empty replacement passes the live test but does not hide matching OOC text in chat messages after the first message.

Expected behavior

All chat text matching the regex should be hidden.

Actual behavior

The regex works in the live test and appears to hide matching text in the first message, but matching text remains visible in subsequent messages. Refreshing the page or reloading Marinara Engine does not resolve the issue.

Steps to reproduce

  1. Create a regex using the pattern OOC:.*?.
  2. Leave the 'Replace With' field empty and set the apply mode to 'Only display'.
  3. Confirm that the regex works in the live test.
  4. Send or display multiple chat messages containing matching OOC text and observe that only the first message is affected.

Environment

  • Marinara Engine version: v2.3.5, staging branch, build f0e435b
  • Install type: Not provided
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided. The reporter states that the live regex test succeeds.

Additional context

The reporter has not tested whether omitting the regex from the first message and adding it to a later message changes the behavior.

Discord thread: Regex hiding of text appears to be broken.
Discord thread link: https://discord.com/channels/1417099416812392641/1531920659653988505
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-29T07:05:46.971Z] Terahurts: Setting a regex to hide OOC using the \(OOC:.*?\) example with empty 'Replace With' and with apply mode set to 'Only display' works with the live test doesn't affect chat text.

It does seem to work when used in the very first message, but not any following ones. Refreshing the page or reloading ME has no effect. I have not tested to see if leaving it out of the first message and adding it to a later one works, but expected behaviour is for all matching text in chat to be hidden.

Staging branch
Release: v2.3.5
Build: f0e435b
Window 11
[Discord message: https://discord.com/channels/1417099416812392641/1531920659653988505/1531920659653988505]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4237 Originally assigned to: @SpicyMarinara on GitHub. ## Summary A display-only regex with an empty replacement passes the live test but does not hide matching OOC text in chat messages after the first message. ## Expected behavior All chat text matching the regex should be hidden. ## Actual behavior The regex works in the live test and appears to hide matching text in the first message, but matching text remains visible in subsequent messages. Refreshing the page or reloading Marinara Engine does not resolve the issue. ## Steps to reproduce 1. Create a regex using the pattern \(OOC:.*?\). 2. Leave the 'Replace With' field empty and set the apply mode to 'Only display'. 3. Confirm that the regex works in the live test. 4. Send or display multiple chat messages containing matching OOC text and observe that only the first message is affected. ## Environment - Marinara Engine version: v2.3.5, staging branch, build f0e435b - Install type: Not provided - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. The reporter states that the live regex test succeeds. ## Additional context The reporter has not tested whether omitting the regex from the first message and adding it to a later message changes the behavior. Discord thread: Regex hiding of text appears to be broken. Discord thread link: https://discord.com/channels/1417099416812392641/1531920659653988505 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-29T07:05:46.971Z] Terahurts: Setting a regex to hide OOC using the \(OOC:.*?\) example with empty 'Replace With' and with apply mode set to 'Only display' works with the live test doesn't affect chat text. It does seem to work when used in the very first message, but not any following ones. Refreshing the page or reloading ME has no effect. I have not tested to see if leaving it out of the first message and adding it to a later one works, but expected behaviour is for all matching text in chat to be hidden. Staging branch Release: v2.3.5 Build: f0e435b Window 11 [Discord message: https://discord.com/channels/1417099416812392641/1531920659653988505/1531920659653988505] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2292
No description provided.