From c870024edbdb5dd61e3c1d0f0445be80e154a5fb Mon Sep 17 00:00:00 2001 From: Egor Sidortsov Date: Tue, 21 Mar 2023 20:05:07 +0300 Subject: [PATCH] remove percent and hyphen Some oracledb tables return names with % and - --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 44efeeee..710ef602 100644 --- a/main.go +++ b/main.go @@ -509,6 +509,8 @@ func cleanName(s string) string { s = strings.Replace(s, ")", "", -1) // Remove close parenthesis s = strings.Replace(s, "/", "", -1) // Remove forward slashes s = strings.Replace(s, "*", "", -1) // Remove asterisks + s = strings.Replace(s, "%", "", -1) // Remove percent + s = strings.Replace(s, "-", "", -1) // Remove hyphen s = strings.ToLower(s) return s }