Skip to content

Commit 9430329

Browse files
committed
Accept native regex in pattern #35
1 parent f88959f commit 9430329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const schema = S.object()
1717
.prop('city')
1818
.prop('zipcode')
1919
)
20-
.prop('username')
20+
.prop('username', S.string().pattern(/[a-z]*/g))
2121
.prop('email', S.string().format('email'))
2222
.prop(
2323
'avatar',

0 commit comments

Comments
 (0)