You can make this module ungreedy (with /U option see http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php) by changing the variable $flags to U

  if ($mode) { // Case Sensitive
    $where = "CAST(t.%s AS BINARY) "; // BINARY to force case sensative.
    $flag = 'U'; // ungreedy
  }
  else { // Case Insensitive
    $where = "t.%s ";
    $flag = 'U'; // ungreedy used to be i //ci flag for use in php preg_search and preg_replace
  }

Comments

damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am sorry, but we're not supporting the D6 version of the module anymore.