[PR #3480] [MERGED] update sql regexp to default to empty string when field is null #4878

Closed
opened 2026-02-28 21:02:37 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3480
Author: @qedi-r
Created: 9/21/2024
Status: Merged
Merged: 9/22/2024
Merged by: @MatissJanis

Base: masterHead: issue-3479


📝 Commits (8)

  • 3e3de01 update sql regexp to default to empty string when field is null
  • 31c1ea5 add release notes
  • df85567 Merge branch 'master' into issue-3479
  • a308924 add release notes
  • 2c49cc5 Merge remote-tracking branch 'origin/issue-3479' into issue-3479
  • 387acee update empty release note with contents
  • a8b3fda revert to using ts-ignore-error
  • 7953850 finish reversion of ts-expect-error

📊 Changes

4 files changed (+30 additions, -2 deletions)

View changed files

📝 packages/loot-core/src/platform/server/sqlite/index.electron.ts (+1 -1)
📝 packages/loot-core/src/platform/server/sqlite/index.web.test.ts (+22 -0)
📝 packages/loot-core/src/platform/server/sqlite/index.web.ts (+1 -1)
upcoming-release-notes/3480.md (+6 -0)

📄 Description

Fixes issue #3479

Note that:

RegExp('null').test(null) ? 1 : 0;

resolves to 1 in JS. 😢


🔄 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/3480 **Author:** [@qedi-r](https://github.com/qedi-r) **Created:** 9/21/2024 **Status:** ✅ Merged **Merged:** 9/22/2024 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `issue-3479` --- ### 📝 Commits (8) - [`3e3de01`](https://github.com/actualbudget/actual/commit/3e3de015c48f6ae01f0bfddcadfd67ba5eece8aa) update sql regexp to default to empty string when field is null - [`31c1ea5`](https://github.com/actualbudget/actual/commit/31c1ea5db0818c19c042a4d5b5cf1a060a932e27) add release notes - [`df85567`](https://github.com/actualbudget/actual/commit/df855671aac54b17638e329f0a0935eabaecbf41) Merge branch 'master' into issue-3479 - [`a308924`](https://github.com/actualbudget/actual/commit/a308924f4896d023e94af9097fa64f4c78754017) add release notes - [`2c49cc5`](https://github.com/actualbudget/actual/commit/2c49cc54385e7880ae0dec68363f70d7871965a4) Merge remote-tracking branch 'origin/issue-3479' into issue-3479 - [`387acee`](https://github.com/actualbudget/actual/commit/387aceeebaa79230abc17d3c9d2e7ead63ca4f75) update empty release note with contents - [`a8b3fda`](https://github.com/actualbudget/actual/commit/a8b3fdaf77624f878f758e3c55115d16af4c17b1) revert to using ts-ignore-error - [`7953850`](https://github.com/actualbudget/actual/commit/7953850d0cd214fc66e61afa75f2f0825d47c11f) finish reversion of ts-expect-error ### 📊 Changes **4 files changed** (+30 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/platform/server/sqlite/index.electron.ts` (+1 -1) 📝 `packages/loot-core/src/platform/server/sqlite/index.web.test.ts` (+22 -0) 📝 `packages/loot-core/src/platform/server/sqlite/index.web.ts` (+1 -1) ➕ `upcoming-release-notes/3480.md` (+6 -0) </details> ### 📄 Description Fixes issue #3479 Note that: `RegExp('null').test(null) ? 1 : 0;` resolves to 1 in JS. 😢 --- <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-02-28 21:02:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4878