`utils::string::replace` hangs on empty strings
TechStudent10 opened this issue · 1 comments
TechStudent10 commented
Geode Issue
- I confirm that this bug is NOT related to a mod but directly to Geode Loader itself.
Platform
Windows
SDK commit
No response
Geode Version
v4.0.0-beta
Mods Installed
No response
Expected Behavior
When attempting to use geode::utils::string::replace
on an empty string, the code should return the empty string as there is nothing to replace.
Actual Behavior
Instead, it hangs. No crashes, just hangs on this single line of code.
Steps to Reproduce
- use
geode::utils::string::replace
where the original string is blank
Additional Information
No response
dankmeme01 commented
could not reproduce the issue with the input string being blank, but if the orig
parameter was blank, the function would indeed loop forever and hang. fixed in 4d5e465