Skip to content

Fix: Add oldStr to StringBuilder before Remove operation in Replace#1656

Merged
tonyqus merged 1 commit into
nissl-lab:masterfrom
ZagidullinRuslanG:fix/replace-function-empty-stringbuilder
Dec 29, 2025
Merged

Fix: Add oldStr to StringBuilder before Remove operation in Replace#1656
tonyqus merged 1 commit into
nissl-lab:masterfrom
ZagidullinRuslanG:fix/replace-function-empty-stringbuilder

Conversation

@ZagidullinRuslanG
Copy link
Copy Markdown
Contributor

  • The Replace function was creating an empty StringBuilder and immediately trying to remove characters from it, causing formula calculation to fail
  • Added strBuff.Append(oldStr) to populate the buffer before modification
  • Fixes issue with REPLACE formula in Excel spreadsheets

…unction nissl-lab#1655

- The Replace function was creating an empty StringBuilder and immediately
  trying to remove characters from it, causing formula calculation to fail
- Added strBuff.Append(oldStr) to populate the buffer before modification
- Fixes issue with REPLACE formula in Excel spreadsheets
@tonyqus tonyqus merged commit ab36a0f into nissl-lab:master Dec 29, 2025
2 of 3 checks passed
@tonyqus
Copy link
Copy Markdown
Member

tonyqus commented Jan 31, 2026

fix #1655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants