Skip to content

[STAL-2746] Fix line/col search in string #443

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

Merged
merged 7 commits into from
Jul 12, 2024
Merged

[STAL-2746] Fix line/col search in string #443

merged 7 commits into from
Jul 12, 2024

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented Jul 12, 2024

What problem are you trying to solve?

When resolving the line/col based on an index, our previous code did not take into account is there was any emoji/grapheme.

What is your solution?

Use bstr and use the grapheme iterator to find the right line/col.

Testing

Tested against the code we previously had. Test for the secrets scanning still works.

@juli1 juli1 requested a review from jasonforal July 12, 2024 01:42
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jul 12, 2024

Software Composition Analysis

✅ No library vulnerabilities found (compared 7b91235 against 88e80e5).

@juli1 juli1 changed the title Juli1/fix grapheme Fix line/col search in string Jul 12, 2024
@juli1 juli1 requested a review from jasonforal July 12, 2024 17:59
@juli1 juli1 merged commit 6841d3d into main Jul 12, 2024
70 checks passed
@juli1 juli1 changed the title Fix line/col search in string [STAL-2746] Fix line/col search in string Aug 18, 2024
@jasonforal jasonforal deleted the juli1/fix-grapheme branch November 8, 2024 09:38
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