We had a requirement on some projects for different matching logics for autocomplete, so I have added ability to select how the options should be matched, e.g. starting with, ending with etc.
See attached patch for suggested changes. Hope others find this feature useful and it makes it into release eventually.

Comments

colemanw’s picture

That seems like a worthwhile improvement.
One note is that it doesn't conform to drupal coding standards, e.g.

  • 2 spaces to indent
  • always use curly braces around conditionals
  • always add a comma after an array item, even the last one.
tiko’s picture

StatusFileSize
new2.5 KB

Thanks for the comment. Here's the revised version of the patch.

tiko’s picture

StatusFileSize
new2.58 KB

I forgot to check coding standards with Coder module. The verified version of patch is presented below.

tiko’s picture

Status: Active » Fixed
colemanw’s picture

Thanks again for the patch. I have committed it to the module.

tiko’s picture

Status: Fixed » Closed (fixed)