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

Broken regex implementation #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stevemao
Copy link
Collaborator

@stevemao stevemao commented Jul 16, 2016

do you support this use-case?

If the str contains more a than b / there are unmatched pairs, and a and/or b is regex, what's the expected behaviour?

If the `str` contains more `a` than `b` / there are unmatched pairs, and a and/or b is regex, what's the expected behaviour?
@juliangruber
Copy link
Owner

i think this should be covered by your other pull requests already, right?

also if you want, i'd be happy to add you as a collaborator on this project

@stevemao
Copy link
Collaborator Author

I don't think this is covered? Which one did you refer to?

Happy to contribute to this anyhow 😄

@juliangruber
Copy link
Owner

juliangruber commented Jul 18, 2016

doesn't this cover that?

If the str contains more a than b / there are unmatched pairs, the first match that was closed will be used. For example, {{a} will match ['{', 'a', ''] and {a}} will match ['', 'a', '}'].

@stevemao
Copy link
Collaborator Author

Oh not with a or b as regex. Also that was just a missing test.

BTW just realise you didn't enable travis.

@stevemao
Copy link
Collaborator Author

This is supposed to be a failure test.

@juliangruber
Copy link
Owner

i enabled travis now, no clue why it was disabled...

@stevemao
Copy link
Collaborator Author

Basically regex only works for very simple use-cases. In order to support all, I think it will be very complicated and performance might be questionable.

@stevemao stevemao changed the title do you support this use-case? Broken regex implementation Jul 19, 2016
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.

2 participants