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

Objective-C marks and non-ASCII characters #115

Merged
merged 3 commits into from
Dec 9, 2015

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Dec 9, 2015

Fixes #114.

@@ -205,9 +234,13 @@ extension String {
if markString.isEmpty {
return nil
}
let markByteRange = self.NSRangeToByteRange(start: markRange.location, length: markRange.length)
if markByteRange == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be a guard

Copy link
Owner

Choose a reason for hiding this comment

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

Agreed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 4243ed8. Thanks for the suggestion.

@jpsim
Copy link
Owner

jpsim commented Dec 9, 2015

This is really great @1ec5! Thanks for the fix, and especially the nice test case. I'll add a changelog entry to describe the fix and attribute you, but that's something you should do yourself next time!

jpsim added a commit that referenced this pull request Dec 9, 2015
Objective-C marks and non-ASCII characters
@jpsim jpsim merged commit c5e73b6 into jpsim:master Dec 9, 2015
jpsim added a commit that referenced this pull request Dec 9, 2015
@1ec5 1ec5 deleted the mark-offsets-114 branch December 9, 2015 23:14
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.

3 participants