Изменения

Перейти к навигации Перейти к поиску
нет описания правки
Строка 496: Строка 496:  
     local input = args[1]
 
     local input = args[1]
 
     if not input then return "" end
 
     if not input then return "" end
     if string.sub(input,1,1) == '['
+
     if islist(input:upper(),tzs_names) then  
    or string.sub(input,1,1) == '{'
  −
    or not (not input:find("[\128-\255]")) then
  −
    return input
  −
    elseif islist(input:upper(),tzs_names) then  
   
     utcin = known_tzs[input:upper()]  
 
     utcin = known_tzs[input:upper()]  
 
     elseif string.sub(input:upper(),1,3) == 'UTC' then
 
     elseif string.sub(input:upper(),1,3) == 'UTC' then
 
     utcin = string.sub(input,4)
 
     utcin = string.sub(input,4)
 +
    elseif string.sub(input,1,1) == '['
 +
    or string.sub(input,1,1) == '{'
 +
    or not (not input:find("[\192-\255]")) then
 +
    return input
 
     else utcin = input end
 
     else utcin = input end
 
     local output = ""
 
     local output = ""
Анонимный участник

Реклама:

Навигация