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

maybe Search() should return deduplicated pattern strings #9

Open
ClarkThan opened this issue Jul 31, 2023 · 0 comments
Open

maybe Search() should return deduplicated pattern strings #9

ClarkThan opened this issue Jul 31, 2023 · 0 comments

Comments

@ClarkThan
Copy link
Owner

ClarkThan commented Jul 31, 2023

eg.
given pattern strings: ["she", "he", "her", "hers"]
m.Search("shershe") should return ["she", "he", "her", "hers"] instead of ["she", "he", "her", "hers", "she", "he"]:

  • return the latter is less meaningfull: the two same pattern string is useless
  • SearchIndexed() can return all matched patterns with char indexed
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

No branches or pull requests

1 participant