mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5068] [MERGED] fix(regex): retain warned patterns during import #6612
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5068
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5067-import-unsafe-regex-warnings📝 Commits (5)
8994fc7fix(regex): retain warned patterns during import095f6fffix(i18n): keep regex warning key sortedaab5298Merge remote-tracking branch 'origin/staging' into fix/5067-import-unsafe-regex-warningsa69dcccMerge remote-tracking branch 'origin/staging' into fix/5067-import-unsafe-regex-warningsaaa219bfix(regex): address import review feedback📊 Changes
7 files changed (+106 additions, -25 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/characters/CharacterRegexSection.tsx(+14 -6)📝
packages/client/src/components/panels/PresetsPanel.tsx(+14 -6)📝
packages/client/src/hooks/use-regex-scripts.ts(+10 -0)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/server/src/routes/regex-scripts.routes.ts(+14 -1)📝
packages/shared/src/schemas/regex.schema.ts(+52 -12)📄 Description
Linked issue
Closes #5067
Why this change
Regex bundle imports currently treat the conservative ReDoS heuristic as a hard validation failure. That silently loses entries users may need to inspect or repair, and reports otherwise well-formed imports as skipped.
What changed
Validation
pnpm checkpnpm localization:checkManual verification notes
Manually verify the global Presets regex importer and a character-scoped regex importer with a mixed safe/flagged bundle. The flagged row should be retained for inspection, while runtime protection continues to prevent it from executing until corrected.
Docs and release impact
No documentation change is needed; the behavior is described under CHANGELOG
[Unreleased].Summary by CodeRabbit
Bug Fixes
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.