In #25 we repaired the bootstrap-typeahead config's matcher to display all the results the database returns, which are both case and accent insensitive, thanks to COLLATE utf8mb4_unicode_ci in the SQL layer.
But it has another parameter, the highlighter, which is supposed to put <em> tags around the portion of the text that the matcher matched. It doesn't right now, the upshot being that if you search for e.g. "Fé" then you'll get <strong>Fé</strong>lix but "Fe" will just show "Felix" without the highlight.
This is a wrong, but in an almost unnoticeable way. It almost doesn't matter at all. But, if anyone feels like yak-shaving, this should be an easy starter.
This task might be superseded by #8, depending on how different bootstrap-typeahead-4 is.
In #25 we repaired the bootstrap-typeahead config's
matcher
to display all the results the database returns, which are both case and accent insensitive, thanks toCOLLATE utf8mb4_unicode_ci
in the SQL layer.But it has another parameter, the
highlighter
, which is supposed to put<em>
tags around the portion of the text that thematcher
matched. It doesn't right now, the upshot being that if you search for e.g. "Fé" then you'll get<strong>Fé</strong>lix
but "Fe" will just show "Felix" without the highlight.This is a wrong, but in an almost unnoticeable way. It almost doesn't matter at all. But, if anyone feels like yak-shaving, this should be an easy starter.
This task might be superseded by #8, depending on how different bootstrap-typeahead-4 is.