You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need an error not to be prefixed by the attribute add a leading ^ to the error and it won't be prepended. If you need to have a leading ^ but want the prefixing just write ^.
However, this doesn't work with can-validate because of the use of validatejs.single and the manual prepending of the key.
varerrors=validatejs.single(value,processOptions(options));// Add the name to the front of the error stringif(errors&&name){for(vari=0;i<errors.length;i++){// Attempt to prettyify the name in each errorerrors[i]=can.capitalize(can.camelize(name))+' '+errors[i];}}returnerrors;
Validate.js's single method forces the fullMessages to be false
Why not just use a non validatejs.single method and let validatejs do its own internal pretty naming and allow users to take advantage of the "^" functionality?
The text was updated successfully, but these errors were encountered:
The validatejs docs say:
However, this doesn't work with can-validate because of the use of
validatejs.single
and the manual prepending of the key.Validate.js's single method forces the
fullMessages
to be false...which means that it isn't taking advantage of its internal name prettifying.
Why not just use a non
validatejs.single
method and let validatejs do its own internal pretty naming and allow users to take advantage of the "^" functionality?The text was updated successfully, but these errors were encountered: