Thai tone marks and vowels at the end of the search term is wrongly removed. (#29071)

Co-authored-by: sukoom pornsuksiri <sukoom@mm.co.th>
Этот коммит содержится в:
Pattara Kiatisevi
2024-11-21 20:47:48 +07:00
коммит произвёл GitHub
родитель 2e13cbb84d
Коммит f0280d6dd4
4 изменённых файлов: 52 добавлений и 2 удалений

Просмотреть файл

@@ -11,7 +11,7 @@ import (
)
var searchTermPuncStart = regexp.MustCompile(`^[^\pL\d\s#"]+`)
var searchTermPuncEnd = regexp.MustCompile(`[^\pL\d\s*"]+$`)
var searchTermPuncEnd = regexp.MustCompile(`[^\pL\p{M}\d\s*"]+$`)
type SearchParams struct {
Terms string `json:"terms,omitempty"`