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 Sep 5, 2024. It is now read-only.
I started using mdAutocomplete in my project, and I was wondering how I could use mdHighlightText properly.
My problem is that this directive only highlights the given string if the text starts with it.
Shouldn't it allow to highlight the string anywhere in the text ?
The easy fix would be to replace this :
varregex=newRegExp('^'+sanitize(term),'i'),
By this:
varregex=newRegExp(sanitize(term),'i'),
In the controller code (MdHighlightCtrl).
Actually, the best option would be to allow to use the same comparing function than the one that filters the items in mdAutocomplete... But maybe this will need to much change.