Skip to content

Commit

Permalink
fix: export the URL rule closes #3310
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 23, 2021
1 parent 5e72852 commit 50b6b64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/i18n/src/locale/ar.json
Expand Up @@ -25,6 +25,7 @@
"regex": "الحقل {field} غير صحيح",
"required": "{field} مطلوب",
"required_if": "حقل {field} مطلوب",
"size": "{field} يجب ان يكون اقل من 0:{size} كيلوبايت"
"size": "{field} يجب ان يكون اقل من 0:{size} كيلوبايت",
"url": "حقل {field} ليس رابطاً صحيحاً"
}
}
3 changes: 3 additions & 0 deletions packages/rules/src/index.ts
Expand Up @@ -27,6 +27,7 @@ import one_of from './one_of';
import regex from './regex';
import required from './required';
import size from './size';
import url from './url';

export {
alpha_dash,
Expand Down Expand Up @@ -55,6 +56,7 @@ export {
regex,
required,
size,
url,
};

const all: Record<string, ValidationRuleFunction<unknown, any>> = {
Expand Down Expand Up @@ -84,6 +86,7 @@ const all: Record<string, ValidationRuleFunction<unknown, any>> = {
regex,
required,
size,
url,
};

export default all;

0 comments on commit 50b6b64

Please sign in to comment.