[Tickets #10966] Autocomplete.js caanot find special (accented) character matches

bugs at horde.org bugs at horde.org
Mon Feb 6 15:45:28 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10966
------------------------------------------------------------------------------
  Ticket             | 10966
  Created By         | viktor at szepe.net
  Summary            | Autocomplete.js caanot find special (accented)
                     | character matches
  Queue              | Turba
  Version            | 3.0.10
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


viktor at szepe.net (2012-02-06 15:45) wrote:

turba's server side search find "eva" for keyword 'Éva'
but js's .match function cannot find that, Solution:
if IsNull(n.match(re)) {
                 n.match(re).each(function(m) {
                     var idx = n.indexOf(m);
                     out.l += n.substr(0, idx).escapeHTML() +  
'<strong>' + m.escapeHTML() + '</strong>';
                     n = n.substr(idx + m.length);
                 });
}





More information about the bugs mailing list