mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
parent
3bf7cac030
commit
a988438946
@ -382,7 +382,7 @@ class SearchService
|
|||||||
protected function generateTermArrayFromText($text, $scoreAdjustment = 1)
|
protected function generateTermArrayFromText($text, $scoreAdjustment = 1)
|
||||||
{
|
{
|
||||||
$tokenMap = []; // {TextToken => OccurrenceCount}
|
$tokenMap = []; // {TextToken => OccurrenceCount}
|
||||||
$splitChars = " \n\t.,";
|
$splitChars = " \n\t.,!?:;()[]{}<>`'\"";
|
||||||
$token = strtok($text, $splitChars);
|
$token = strtok($text, $splitChars);
|
||||||
|
|
||||||
while ($token !== false) {
|
while ($token !== false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user