Skip to content
Snippets Groups Projects

Issue #38: Regexes Update

Merged Gabriel Silva Hermida requested to merge issue/38 into development
3 files
+ 18
21
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -8,9 +8,7 @@ function checkText(value) {
@@ -8,9 +8,7 @@ function checkText(value) {
/** Function that applies the validation of it's used schema and sets the error messages. */
/** Function that applies the validation of it's used schema and sets the error messages. */
export async function testQuestionTextSchema(error, value) {
export async function testQuestionTextSchema(error, value) {
value
value
? checkText(value)
? (error.errorMsg.question = "")
? (error.errorMsg.question = "")
: (error.errorMsg.question = "O caractere não é permitido")
: (error.errorMsg.question = "Este campo é obrigatório!");
: (error.errorMsg.question = "Este campo é obrigatório!");
}
}
/** Function that applies the validation of it's used schema and sets the error messages. */
/** Function that applies the validation of it's used schema and sets the error messages. */
@@ -73,9 +71,7 @@ export async function testSubformSchema(form, index) {
@@ -73,9 +71,7 @@ export async function testSubformSchema(form, index) {
/** Function that applies the validation of it's used schema and sets the error messages. */
/** Function that applies the validation of it's used schema and sets the error messages. */
export async function selectOptionTextTesting(error, value, idopt) {
export async function selectOptionTextTesting(error, value, idopt) {
value
value
? checkText(value)
? (error.errorMsg.options[idopt] = "")
? (error.errorMsg.options[idopt] = "")
: (error.errorMsg.options[idopt] = "O caractere não é permitido")
: (error.errorMsg.options[idopt] = "Por favor, preencha esta opção");
: (error.errorMsg.options[idopt] = "Por favor, preencha esta opção");
}
}
/** Schema to validate the quantity field of the validation from FormFieldText. */
/** Schema to validate the quantity field of the validation from FormFieldText. */
Loading