Fixed naming
This commit is contained in:
parent
2d7dbddf5c
commit
109494bb0c
1 changed files with 3 additions and 3 deletions
|
@ -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]+")
|
reg, regerr := regexp.Compile("[^a-zA-Z0-9]+")
|
||||||
if regerr != nil {
|
if regerr != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
projectId := strings.ToLower(reg.ReplaceAllString(projectName, ""))
|
id := strings.ToLower(reg.ReplaceAllString(name, ""))
|
||||||
|
|
||||||
return projectId
|
return id
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetISOCalendarWeek(date time.Time) (int) {
|
func GetISOCalendarWeek(date time.Time) (int) {
|
||||||
|
|
Loading…
Reference in a new issue