You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Matches with lower number of substrings would come before matches with higher number of substrings.
This would be a lot more generic than the substring() based approach suggested in some PRs.
If you want to play with this, here's an online thing demonstrating the concept (I didn't write this, just found it): http://lcs-demo.sourceforge.net/
Start by upping the "Max Size" a bit, then type in two strings and press "Execute LCS Lengths" to see how it works.
One real-world use case where this would come in handy is when searching for "git push", note how it's third place even though "git" and "push" are exact matches. Single-word matches would be caught by this as well.