Merge pull request #1 from alterphp/main

Fix https://github.com/neayi/tripleperformance/issues/417
This commit is contained in:
Bertrand Gorge
2024-11-21 17:30:02 +01:00
committed by GitHub

View File

@ -159,7 +159,7 @@ class Target {
* @return String regular expression pattern
*/
private function buildRegex( $searchTerm ) {
return '/(?<![\:\.\@\/\?\&])' . $this->wordStart . $searchTerm . $this->wordEnd . '/S';
return '/(?<![\:\.\@\/\?\&])' . $this->wordStart . $searchTerm . $this->wordEnd . '/Su';
}
/**