diff --git a/src/lib/utils/regexp.ts b/src/lib/utils/regexp.ts index fcc8cce..69052d0 100644 --- a/src/lib/utils/regexp.ts +++ b/src/lib/utils/regexp.ts @@ -1,6 +1,6 @@ import { env } from '$env/dynamic/public'; -export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:(?:\s|-)[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+)?$/; +export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:(?:\s|-)[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+)?\s*$/; export const nameRegExpMsg = 'String must be 1-2 word(s) seperated by space or dash (-)'; export const indexRegExp = new RegExp(