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

Move skipping invalid ranges to parser on iOS #561

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Dec 5, 2024

Details

This PR moves logic related to skipping ranges with zero length or exceeding the length or the text from formatting step to parsing step to make logic analogous to Android implementation.

if (length == 0 || start + length > text.length()) {
continue;
}

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw requested a review from j-piasecki December 5, 2024 13:47
@tomekzaw tomekzaw merged commit 6a85ff5 into main Dec 5, 2024
5 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/ios-skip-ranges branch December 5, 2024 16:02
@os-botify
Copy link
Contributor

os-botify bot commented Dec 5, 2024

🚀 Published to npm in 0.1.197 🎉

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