Изменения

Перейти к навигации Перейти к поиску
костыль по запросу на Обсуждение модуля:CiteWeb#Язык (рус.) не скрывается, если задан через lang=ru-RU (вероятно, потом нужно нормализовывать и определять что это русский)
Строка 162: Строка 162:  
     local hidden = false;
 
     local hidden = false;
   −
     if #args == 1 and args[1] == 'ru' then
+
     if #args == 1 and (args[1] == 'ru' or args[1] == 'ru-RU') then
 
         hidden = true;
 
         hidden = true;
 
     end
 
     end
Строка 234: Строка 234:  
         table.insert(str, expandError('empty_title'));
 
         table.insert(str, expandError('empty_title'));
 
         table.insert(cats, 'empty_title')
 
         table.insert(cats, 'empty_title')
     elseif not is(args['lang']) and mw.ustring.find(args['title'], '^[0-9А-яЁё«»:;,…!? \194\160%(%)%.—№%/%|%&%#+-]+$') == nil then
+
     elseif not is(args['lang']) and mw.ustring.find(args['title'], '^[0-9А-яЁёXVILC«»„“:;,…!?•∙→ \194\160\n\226\128\175%(%)%.%"\'—№–%/%|%&%#+-]+$') == nil then
 
         table.insert(cats, 'empty_lang')
 
         table.insert(cats, 'empty_lang')
 
     end
 
     end
Анонимный участник

Реклама:

Навигация