diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/helpers/validation-helpers.ts | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/helpers/validation-helpers.ts')
-rw-r--r-- | src/helpers/validation-helpers.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helpers/validation-helpers.ts b/src/helpers/validation-helpers.ts index dfaf199ee..4e0af8b08 100644 --- a/src/helpers/validation-helpers.ts +++ b/src/helpers/validation-helpers.ts | |||
@@ -29,7 +29,7 @@ export function required({ field }) { | |||
29 | const isValid = field.value.trim() !== ''; | 29 | const isValid = field.value.trim() !== ''; |
30 | return [ | 30 | return [ |
31 | isValid, | 31 | isValid, |
32 | (window as any).ferdi.intl.formatMessage(messages.required, { | 32 | (window as any).ferdium.intl.formatMessage(messages.required, { |
33 | field: field.label, | 33 | field: field.label, |
34 | }), | 34 | }), |
35 | ]; | 35 | ]; |
@@ -40,7 +40,7 @@ export function email({ field }) { | |||
40 | const isValid = isEmail(value); | 40 | const isValid = isEmail(value); |
41 | return [ | 41 | return [ |
42 | isValid, | 42 | isValid, |
43 | (window as any).ferdi.intl.formatMessage(messages.email, { | 43 | (window as any).ferdium.intl.formatMessage(messages.email, { |
44 | field: field.label, | 44 | field: field.label, |
45 | }), | 45 | }), |
46 | ]; | 46 | ]; |
@@ -62,7 +62,7 @@ export function url({ field }) { | |||
62 | 62 | ||
63 | return [ | 63 | return [ |
64 | isValid, | 64 | isValid, |
65 | (window as any).ferdi.intl.formatMessage(messages.url, { | 65 | (window as any).ferdium.intl.formatMessage(messages.url, { |
66 | field: field.label, | 66 | field: field.label, |
67 | }), | 67 | }), |
68 | ]; | 68 | ]; |
@@ -76,7 +76,7 @@ export function minLength(length: number) { | |||
76 | } | 76 | } |
77 | return [ | 77 | return [ |
78 | isValid, | 78 | isValid, |
79 | (window as any).ferdi.intl.formatMessage(messages.minLength, { | 79 | (window as any).ferdium.intl.formatMessage(messages.minLength, { |
80 | field: field.label, | 80 | field: field.label, |
81 | length, | 81 | length, |
82 | }), | 82 | }), |
@@ -89,7 +89,7 @@ export function oneRequired(targets: string[]) { | |||
89 | const invalidFields = targets.filter(target => form.$(target).value === ''); | 89 | const invalidFields = targets.filter(target => form.$(target).value === ''); |
90 | return [ | 90 | return [ |
91 | targets.length !== invalidFields.length, | 91 | targets.length !== invalidFields.length, |
92 | (window as any).ferdi.intl.formatMessage(messages.required, { | 92 | (window as any).ferdium.intl.formatMessage(messages.required, { |
93 | field: field.label, | 93 | field: field.label, |
94 | }), | 94 | }), |
95 | ]; | 95 | ]; |