Skip to content

Commit

Permalink
feat: url regexp support /?a=1 and ?a=1 (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylfeng250 authored May 9, 2021
1 parent 3c5f6f7 commit 4fed624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validator/src/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
// port number
'(?::\\d{2,5})?' +
// resource path
'(?:/\\S*)?$'
'(?:/?\\S*)?$'
),
email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,

Expand Down

0 comments on commit 4fed624

Please sign in to comment.