From 109494bb0cc3c8b4eb99f53a988ca92d0ddc1238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Fri, 23 Oct 2020 20:51:51 +0100 Subject: [PATCH] Fixed naming --- z/helpers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/z/helpers.go b/z/helpers.go index e3128c8..e7b8fca 100644 --- a/z/helpers.go +++ b/z/helpers.go @@ -104,15 +104,15 @@ func ParseTime(timeStr string) (time.Time, error) { } } -func GetIdFromName(projectName string) string { +func GetIdFromName(name string) string { reg, regerr := regexp.Compile("[^a-zA-Z0-9]+") if regerr != nil { return "" } - projectId := strings.ToLower(reg.ReplaceAllString(projectName, "")) + id := strings.ToLower(reg.ReplaceAllString(name, "")) - return projectId + return id } func GetISOCalendarWeek(date time.Time) (int) {