This commit is contained in:
2025-06-03 00:40:18 +07:00
parent 06f1128ad0
commit 320273738d
11 changed files with 20 additions and 19 deletions
@@ -71,6 +71,7 @@ func (s *StoryService) GetPlace(code string) *Place {
func clearCode(code string) string {
code = strings.ToLower(code)
code = strings.TrimSpace(code)
code = strings.ReplaceAll(code, "-", "")
for latin, cyrillic := range replaceMap {
code = strings.ReplaceAll(code, latin, cyrillic)