Index: misc/autocomplete.js =================================================================== RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v retrieving revision 1.3 diff -u -F^f -r1.3 autocomplete.js --- misc/autocomplete.js 3 Jul 2005 16:12:55 -0000 1.3 +++ misc/autocomplete.js 6 Aug 2005 14:09:03 -0000 @@ -196,11 +196,13 @@ function jsAC(input, db) { } var ul = document.createElement('ul'); var ac = this; + var matchRegExp = new RegExp('('+this.input.value + ')', 'gi'); if (matches.length > 0) { for (i in matches) { li = document.createElement('li'); div = document.createElement('div'); div.innerHTML = matches[i][1]; + div.innerHTML = div.innerHTML.replace(matchRegExp, '$1'); li.appendChild(div); li.autocompleteValue = matches[i][0]; li.onmousedown = function() { ac.select(this); };