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

internal/regexp: handle unicode correctly #174

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

fhs
Copy link
Contributor

@fhs fhs commented Jan 22, 2019

Index was returning byte offset instead of rune offset.

@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #174 into master will increase coverage by 0.18%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #174      +/-   ##
==========================================
+ Coverage   15.88%   16.07%   +0.18%     
==========================================
  Files          45       46       +1     
  Lines       10277    10295      +18     
==========================================
+ Hits         1633     1655      +22     
+ Misses       8453     8451       -2     
+ Partials      191      189       -2
Impacted Files Coverage Δ
internal/runes/runes.go 100% <100%> (ø)
internal/regexp/runes.go 92.66% <50%> (+1.83%) ⬆️
internal/regexp/runesb.go 90.32% <0%> (+2.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a722d40...f7023e4. Read the comment docs.

Index was returning byte offset instead of rune offset.
Copy link
Owner

@rjkroege rjkroege left a comment

Choose a reason for hiding this comment

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

Awesome. Thanks.

@rjkroege rjkroege merged commit cf3380a into rjkroege:master Jan 22, 2019
@fhs fhs deleted the regx-unicode-bug branch January 22, 2019 19:03
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