From: Adam Dickmeiss Date: Wed, 18 Mar 2009 14:41:34 +0000 (+0100) Subject: Fix ICU search problem / caret not escaped. X-Git-Tag: v2.0.37~13^2~1 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=1ae1d7d8642311e56b1034a10a909cd546514061 Fix ICU search problem / caret not escaped. For some ICU versions (4.0.1, possibly others) the normalized term may include a caret (^) in it and so this chracter must also be escaped before turned into a regular expression. --- diff --git a/index/rpnsearch.c b/index/rpnsearch.c index fc78870..0bbfdf1 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -203,7 +203,7 @@ static void esc_str(char *out_buf, size_t out_size, } } -#define REGEX_CHARS " []()|.*+?!\"$" +#define REGEX_CHARS " ^[]()|.*+?!\"$" static void add_non_space(const char *start, const char *end, WRBUF term_dict,