Skip to content

Split string into lines not words #1499

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 1 commit into from
Dec 4, 2023

Conversation

tom-ludwig
Copy link
Member

In the search index PR, there's a tiny hiccup: for (lineNumber, line) in string.components(separatedBy: .whitespacesAndNewlines). This loop divides the string into words, not lines.
I replaced it with .newlines. Which also speeds the search up a bit more.
Sorry I missed that earlier 🫣

Old results:
Screenshot 2023-12-04 at 7 40 11 PM

Proper new results:
Screenshot 2023-12-04 at 7 43 04 PM

@tom-ludwig
Copy link
Member Author

@0xWDG @austincondiff

@thecoolwinter thecoolwinter merged commit e75665e into CodeEditApp:main Dec 4, 2023
@thecoolwinter thecoolwinter added the bug Something isn't working label Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants