Skip to content

Conversation

@s-shiryaev
Copy link
Contributor

Hello

This PR fixes #915

When replacing with str_replace() , if $search and $replace have different number of elements, it is possible to replace with an empty string.
This PR fixes it.

@shalvah
Copy link
Contributor

shalvah commented May 21, 2025

Thanks for this! Can you add a test?

@s-shiryaev
Copy link
Contributor Author

Sure. Here it is! @shalvah

Quite a rare case 🤔

@shalvah shalvah merged commit 99c2121 into knuckleswtf:v5 May 22, 2025
5 of 6 checks passed
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.

Optional Parameters not working when using prefixed group

2 participants