mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
fixed CustomName whitespace
This commit is contained in:
@@ -3,7 +3,7 @@ package functions
|
||||
import "unicode"
|
||||
|
||||
// check if course is empty or contains only whitespaces
|
||||
func CheckIfOnlyWhitespace(word string) bool {
|
||||
func OnlyWhitespace(word string) bool {
|
||||
for _, letter := range word {
|
||||
if !unicode.IsSpace(letter) || !(letter == int32(160)) {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user