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

Fix start at end #28

Merged
merged 2 commits into from
Aug 7, 2020
Merged

Fix start at end #28

merged 2 commits into from
Aug 7, 2020

Conversation

dop251
Copy link
Contributor

@dop251 dop251 commented Aug 6, 2020

Search starting at the UTF-8 string's length was failing because it was unable to find the matching offset in the UTF-8 string. This PR fixes the problem. Also, changed converting from a UTF-8 string to an array of runes by simply doing []rune(s). Please consider merging.

Copy link
Owner

@dlclark dlclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding the bug and submitting a PR! I've mentioned a couple changes that I'd like to see for cleaning up the original code before I merge this.

regexp.go Show resolved Hide resolved
regexp.go Show resolved Hide resolved
@dlclark dlclark merged commit 74bac81 into dlclark:master Aug 7, 2020
@dop251 dop251 deleted the fix-start-at-end branch August 7, 2020 14:55
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