Allow partial terms and multiple search tokens instead of rigid 'begins-with' substring matching.
This isn't perfect and could probably do with some tuning of the FuzzySearch parameters, but it's better than the current, very unforgiving, method.
It also adds the .php suffix to selected autocomplete results (to match the canonical tags), stops the results list from becoming inaccessible when taller than the viewport, and drops a couple of unused variables.
Allow partial terms and multiple search tokens instead of rigid 'begins-with' substring matching.
This isn't perfect and could probably do with some tuning of the FuzzySearch parameters, but it's better than the current, very unforgiving, method.
It also adds the
.php
suffix to selected autocomplete results (to match the canonical tags), stops the results list from becoming inaccessible when taller than the viewport, and drops a couple of unused variables.