[PR #3725] [MERGED] fix Tag filtering crashing app when tag has regex special character #39454

Closed
opened 2026-04-23 12:23:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3725
Author: @joel-rich
Created: 10/24/2024
Status: Merged
Merged: 10/27/2024
Merged by: @MikesGlitch

Base: masterHead: notes-regex-fix


📝 Commits (2)

  • 9e4c263 fix Tag filtering crashing app when tag has regex special character
  • 4562714 release-notes

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/accounts/transaction-rules.ts (+3 -1)
upcoming-release-notes/3725.md (+6 -0)

📄 Description

Actual would crash if user attempted to filter by a Tag that has regex special characters in it - see discord support thread https://discord.com/channels/937901803608096828/1297943156146311208

Fixed by escaping regex special characters in tag before doing regex tag search - used regex found here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#escaping


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/3725 **Author:** [@joel-rich](https://github.com/joel-rich) **Created:** 10/24/2024 **Status:** ✅ Merged **Merged:** 10/27/2024 **Merged by:** [@MikesGlitch](https://github.com/MikesGlitch) **Base:** `master` ← **Head:** `notes-regex-fix` --- ### 📝 Commits (2) - [`9e4c263`](https://github.com/actualbudget/actual/commit/9e4c263f88d53a093f4ad792a3a4139fa80bfb0d) fix Tag filtering crashing app when tag has regex special character - [`4562714`](https://github.com/actualbudget/actual/commit/456271430de969c1a409c55650fbfb943f19af4b) release-notes ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/accounts/transaction-rules.ts` (+3 -1) ➕ `upcoming-release-notes/3725.md` (+6 -0) </details> ### 📄 Description Actual would crash if user attempted to filter by a Tag that has regex special characters in it - see discord support thread https://discord.com/channels/937901803608096828/1297943156146311208 Fixed by escaping regex special characters in tag before doing regex tag search - used regex found here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#escaping --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 12:23:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#39454