tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

ValidateMultiple/ValidateResult hangs when string to validate contains "@"

Open joseaomedes opened this issue 10 years ago • 0 comments

When using tv4 to validate a string containing "@" never returns.

Test conditions:

Schema definition: id: {type: "string", pattern: "^((https?://)?([\da-z.-]+).([a-z.]{2,6})([/\w .-])/?)$"} String to validate against this pattern http://www.test.com/test/[email protected]/public

ValidateMultiple/ValidateResult hangs and never returns:

Within the function, 
  > context.addSchema("", schema)  works fine
  > context.validateAll(data, schema, null, null, ""); never returns

Validating string not containing "@" works fine.

joseaomedes avatar Feb 06 '15 14:02 joseaomedes