Fixed
This commit is contained in:
parent
96a6460553
commit
2b6e15c7cd
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class Validator extends Matcher {
|
|||
var msg = customErrorMessages[key];
|
||||
|
||||
if (msg is String)
|
||||
return msg.replaceAll('{{value}}', value);
|
||||
return msg.replaceAll('{{value}}', value.toString());
|
||||
else if (msg is CustomErrorMessageFunction) {
|
||||
return msg(value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue