Fixed #10211: Regex quantifiers like ? and + broke search engine.

This commit is contained in:
Hao Ching 2009-06-03 19:26:08 +00:00
parent 501a5be7dc
commit c32bfac709
3 changed files with 5 additions and 3 deletions

View file

@ -48,7 +48,7 @@ ok( $search->_isStopword('the'), '_isStopword: "the" is a stopword')
ok( $search->_isStopword('all*'), '_isStopword: regex metacharacter * does not crash the search');
ok( $search->_isStopword('anybody+'), '_isStopword: regex metacharacter + does not crash the search');
ok( $search->_isStopword('maybe?'), '_isStopword: regex metacharacter ? does not crash the search');
ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacter ? does not crash the search');
ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacters .+ do not crash the search');
#----------------------------------------------------------------------------
# Cleanup