fix isPath message

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-09-11 16:33:47 +03:00
1 parent e005985621
commit 1287a4e2a4
1 file changed
+1 -1
@@ -44,7 +44,7 @@ export const isUrl: Validator = {
export const isPath: Validator = {
condition: ({ type }) => type === "text",
message: () => _i18n._(t`This field must be a path to an existing file`),
message: () => _i18n._(t`This field must be a valid path`),
validate: value => !value || fse.pathExistsSync(value),
}