add \r to js regexp

This commit is contained in:
einhornimmond 2021-09-27 13:35:39 +02:00
parent b9854f494c
commit 5afe8fe741

View File

@ -114,7 +114,7 @@ export const loadAllRules = (i18nCallback) => {
extend('atLeastOneSpecialCharater', { extend('atLeastOneSpecialCharater', {
validate(value) { validate(value) {
return !!value.match(/[^a-zA-Z0-9 \t\n]/) return !!value.match(/[^a-zA-Z0-9 \t\n\r]/)
}, },
message: (_, values) => i18nCallback.t('site.signup.special-char', values), message: (_, values) => i18nCallback.t('site.signup.special-char', values),
}) })