Модуль:Поиск шаблона страницы: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 19: | Строка 19: | ||
local cleanedContent = content:gsub("{{#invoke:Поиск строк страницы|main|[^}]+}}", "") | local cleanedContent = content:gsub("{{#invoke:Поиск строк страницы|main|[^}]+}}", "") | ||
local pattern = "( | local pattern = "([^%wА-Яа-яёЁ])" .. searchText .. "([^%wА-Яа-яёЁ])" | ||
if not cleanedContent:match(pattern) then | if not cleanedContent:match(pattern) then | ||