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

Refactor special character trimming in SpellCheck. #9057

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ivandrofly
Copy link
Member

Replaced repetitive loops and conditions with a more concise approach using HashSet for trimming special characters from the current word. This change improves code readability and performance by simplifying the logic that determines prefixes and postfixes.

Replaced repetitive loops and conditions with a more concise approach using HashSet for trimming special characters from the current word. This change improves code readability and performance by simplifying the logic that determines prefixes and postfixes.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
@ivandrofly ivandrofly marked this pull request as ready for review December 3, 2024 19:17
Eliminate an unnecessary blank line to improve code readability. This change has no impact on functionality but aids in maintaining cleaner code formatting.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Simplify the logic for updating the text of the current spell check word by condensing conditional checks into a single line operation. This change enhances code readability and maintainability by reducing redundancy and streamlining the initialization process.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
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.

1 participant