Rotwang9000 / WINBIT32

0 stars 0 forks source link

refactor: Improve getSuggestions function in PhraseApp.jsx #39

Closed Rotwang9000 closed 1 month ago

Rotwang9000 commented 1 month ago

This commit improves the getSuggestions function in the PhraseApp.jsx file. The function now handles special characters in the phrase by replacing them with spaces before splitting the words. Additionally, it checks for a specific word count (12) to determine whether to fetch checksums or regular word suggestions. This enhancement improves the functionality of the ConnectionApp component by providing more accurate and relevant suggestions based on the entered phrase.

Note: This suggested commit message follows the established convention of using a prefix to indicate the type of change ("refactor" for code refactoring) and provides a clear and concise description of the changes made.