Skip to content

Fix for crash when TextReplacer when replacement string is empty.#18

Open
adricl wants to merge 1 commit intoOpenXmlDev:vNextfrom
adricl:vNext
Open

Fix for crash when TextReplacer when replacement string is empty.#18
adricl wants to merge 1 commit intoOpenXmlDev:vNextfrom
adricl:vNext

Conversation

@adricl
Copy link

@adricl adricl commented Feb 4, 2020

If you use the textReplacer and have the replacement string as and empty string an out of bounds exception occurs.

I have also added and example in the TextReplacer examples.

@JamesSkemp
Copy link

Any chance you can PR this into the https://github.com/LionelVallet/Open-Xml-PowerTools fork?

That supports .NET 6, but has this same empty string replacement issue.

huan086 pushed a commit to huan086/Open-Xml-PowerTools that referenced this pull request Sep 17, 2024
Propagate run attributes when coalescing adjacent runs with identical…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants