Skip to content

Commit

Permalink
feat: url type support rtmp (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desen Meng authored Feb 29, 2020
1 parent e979755 commit 084cbc0
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
@@ -1,7 +1,7 @@
export default {
url: new RegExp(
// protocol identifier
'^(?:(?:(?:https?|ftp):)?//)' +
'^(?:(?:(?:https?|ftp|rtmp):)?//)' +
// user:pass authentication
'(?:\\S+(?::\\S*)?@)?' +
'(?:' +
Expand Down

0 comments on commit 084cbc0

Please sign in to comment.