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

MATCH function fix #1122

Merged
merged 7 commits into from
Aug 12, 2019
Merged

MATCH function fix #1122

merged 7 commits into from
Aug 12, 2019

Conversation

rolandsusans
Copy link
Contributor

@rolandsusans rolandsusans commented Jul 31, 2019

MATCH function is buggy, this PR fixes MATCH function implementation so that it works as expected. Bugs initially were reported as issue: #1116

This is:

  • a bugfix
  • a new feature

Checklist:

Why this change is needed?

@see Error report #1116

- cast only strings to lower cased values
- fix gives up immediately if the current element is smaller than the searched value ( match_type=-1)
- fix 0 == false & 1 == true
- add test cases
- update changelog
@rolandsusans rolandsusans changed the title [WIP] MATCH function fix MATCH function fix Aug 1, 2019
@rolandsusans
Copy link
Contributor Author

@MarkBaker can you please check this PR? If there is anything let me know.

@rolandsusans
Copy link
Contributor Author

@PowerKiKi maybe you can take a look at this PR?

@PowerKiKi PowerKiKi merged commit 9df68f1 into PHPOffice:master Aug 12, 2019
@PowerKiKi
Copy link
Member

Thanks for this great PR !

@rolandsusans rolandsusans deleted the match-fix branch August 12, 2019 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants