Skip to content
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

Add Case-sensitive flag for Stringable replace #35

Closed
rudashi opened this issue Apr 6, 2023 · 0 comments · Fixed by #54
Closed

Add Case-sensitive flag for Stringable replace #35

rudashi opened this issue Apr 6, 2023 · 0 comments · Fixed by #54
Assignees
Labels
feature New feature or request

Comments

@rudashi
Copy link
Owner

rudashi commented Apr 6, 2023

Examples:

// Case-insensitive Stringable example
// foo/foo/foo
Str::of('x/x/x')->replace('X', 'foo', false);
 
// Case-insensitive
// foo bar laravel
Str::replace('baz', 'laravel', 'foo bar Baz', false);
 
// Default case-sensitive will not replace `Baz` with `laravel`
Str::replace('baz', 'laravel', 'foo bar Baz'); // foo ba
@rudashi rudashi added the feature New feature or request label Apr 6, 2023
@rudashi rudashi self-assigned this Apr 6, 2023
@rudashi rudashi linked a pull request Aug 20, 2024 that will close this issue
rudashi added a commit that referenced this issue Aug 20, 2024
Resolve #35: Added caseSensitive flag to `replace()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant