generated from VLADIMIR/template
update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user