fixed CustomName whitespace

This commit is contained in:
Elmar Kresse
2023-09-22 16:31:12 +02:00
parent 023cca3105
commit 334dd406a7
3 changed files with 7 additions and 7 deletions

View File

@@ -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