Skip to content

Fix String.replace() broken by #6190 #6224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Conversation

s-hadinger
Copy link
Contributor

Summary

This PR fixes a bug introduced by #6190

There was no braces after if so the return statement is taken every time, not just in case of failure.

Impact

String.replace is not doing an actual replacement most of the time.

Related links

Jason2866 added a commit to tasmota/platform-espressif32 that referenced this pull request Feb 2, 2022
Jason2866 added a commit to tasmota/platform-espressif32 that referenced this pull request Feb 2, 2022
@s-hadinger s-hadinger changed the title Fix replace() failing Fix String.replace() broken by #6190 Feb 2, 2022
@tablatronix
Copy link
Contributor

@me-no-dev ping
Fatal string replace bug, merge PR or revert #6190

@me-no-dev me-no-dev merged commit 6591f5b into espressif:master Feb 3, 2022
@me-no-dev
Copy link
Member

Thanks @s-hadinger

@mrengineer7777
Copy link
Collaborator

@s-hadinger Wow that's embarrassing. Thanks for the fix.

@s-hadinger
Copy link
Contributor Author

Thanks for the great work at Arduino core. Tasmota is a heavy user

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.

4 participants