File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- import { getValidation , verify } from " ./src/verify" ;
1
+ import { getValidation , verify , validationRegexp } from ' ./src/verify' ;
2
2
3
3
declare module '@qavajs/validation' {
4
- export { verify , getValidation }
4
+ export { verify , getValidation , validationRegexp }
5
5
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const toBeClause = '(?:to )?(?:be )?';
18
18
const validationClause = `(?:(${ Object . values ( validations ) . join ( '|' ) } )(?:s|es)?)` ;
19
19
20
20
export const validationExtractRegexp = new RegExp ( `^${ isClause } ${ notClause } ${ toBeClause } ${ validationClause } $` ) ;
21
+ export const validationRegexp = new RegExp ( `(${ isClause } ${ notClause } ${ toBeClause } ${ validationClause } )` ) ;
21
22
22
23
type VerifyInput = {
23
24
AR : any ;
You can’t perform that action at this time.
0 commit comments