Модуль:JsonPaths: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| (не показано 5 промежуточных версий этого же участника) | |||
| Строка 35: | Строка 35: | ||
path = trim(path) | path = trim(path) | ||
if path == "" | if path == "Corvax" then | ||
return "" | |||
end | |||
if path == "" then | |||
return getCurrentGitNamespace() | return getCurrentGitNamespace() | ||
end | end | ||
| Строка 221: | Строка 225: | ||
local jsonPath = modulePath:gsub("^Module:IanComradeBot/", "Участник:IanComradeBot/", 1) | local jsonPath = modulePath:gsub("^Module:IanComradeBot/", "Участник:IanComradeBot/", 1) | ||
return (jsonPath:gsub("/data$", "")) | return (jsonPath:gsub("/data$", "")) | ||
end | end | ||