Fixed #10211: Regex quantifiers like ? and + broke search engine.
This commit is contained in:
parent
501a5be7dc
commit
c32bfac709
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue