Fixed an issue where @pm was not ignoring case.

Documented case insensitivity of @pm.
This commit is contained in:
b1v1r
2009-05-29 20:46:24 +00:00
parent 2f0debef59
commit b5204a86ab
3 changed files with 8 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
20 May 2009 - 2.5.10-dev
29 May 2009 - 2.5.10-dev
------------------------
* Fixed @pm/@pmFromFile case insensitivity.
* Truncate long parameters in log message for "Match of ... against ...
required" messages.

View File

@@ -782,6 +782,9 @@ apr_status_t acmp_process_quick(ACMPT *acmpt, const char **match, const char *da
while (data < end) {
acmp_utf8_char_t letter = (unsigned char)*data++;
if (parser->is_case_sensitive == 0) letter = utf8_lcase(letter);
go_to = NULL;
while (go_to == NULL) {
go_to = acmp_goto(node, letter);

View File

@@ -6,7 +6,7 @@
Manual</title>
<articleinfo>
<releaseinfo>Version 2.5.10-dev1 (May 15, 2009)</releaseinfo>
<releaseinfo>Version 2.5.10-dev1 (May 29, 2009)</releaseinfo>
<copyright>
<year>2004-2009</year>
@@ -5555,7 +5555,7 @@ end</programlisting>
<para><emphasis>Description:</emphasis> Phrase Match operator. This
operator uses a set based matching engine (Aho-Corasick) for faster
matches of keyword lists. It will match any one of its arguments
anywhere in the target value.</para>
anywhere in the target value. The match is case insensitive.</para>
<para>Example:</para>