Menu option to display the search text

This commit is contained in:
Michael 2024-04-05 07:35:21 +00:00
parent 44344af055
commit 50b1de5959
9 changed files with 152 additions and 44 deletions

View file

@ -418,4 +418,12 @@ class Engagement
}
return $fullTextSearch;
}
public static function unescapeKeywords(string $fullTextSearch): string
{
foreach (self::KEYWORDS as $keyword) {
$fullTextSearch = preg_replace('~(' . $keyword . ')_(.[\w\*@\.-]+)~', '$1:$2', $fullTextSearch);
}
return $fullTextSearch;
}
}