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

Extend Str:: helpers after/before and add afterLast beforeLast #28218

Closed
wants to merge 2 commits into from
Closed

Extend Str:: helpers after/before and add afterLast beforeLast #28218

wants to merge 2 commits into from

Conversation

UnDeAdYeTii
Copy link

@UnDeAdYeTii UnDeAdYeTii commented Apr 14, 2019

Adds case insensitive support for ::before and ::after
Adds ::beforeLast and ::afterLast (both with case insensitive support)
Adds ::between, ::betweenGreedy and ::betweenLazy (all with case insensitive support)

Old PR: #28212 rebased to master (sorry, am new to this)

@taylorotwell
Copy link
Member

I don't particularly like adding a lot of boolean flags and the code does not fllow PSR-2. Feel free to macro in helpers to the Str class if you need them for your project.

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.

3 participants