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

Regular expression string matching feels backwards #103

Open
kaidesu opened this issue Jan 30, 2022 · 0 comments
Open

Regular expression string matching feels backwards #103

kaidesu opened this issue Jan 30, 2022 · 0 comments
Labels
change Change an existing feature

Comments

@kaidesu
Copy link
Member

kaidesu commented Jan 30, 2022

Finding matches within a string currently feels backwards:

Ghost (1.0-beta.1)
Press Ctrl + C to exit

>> pattern = "i need (.*)"
>> pattern.find("I need coffee".toLowerCase())
coffee

I think this should be the other way around:

"I need coffee".find(pattern)
@kaidesu kaidesu added the change Change an existing feature label Jan 30, 2022
@kaidesu kaidesu added this to the v1.0 Beta 2 milestone Jan 30, 2022
@kaidesu kaidesu self-assigned this Jan 30, 2022
@kaidesu kaidesu removed their assignment Oct 27, 2023
@kaidesu kaidesu removed this from the v1.0 Beta 2 milestone Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Change an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant