diff --git a/frontend/src/components/dialog/add-video-link-dialog.js b/frontend/src/components/dialog/add-video-link-dialog.js index a369434c97..56559719b6 100644 --- a/frontend/src/components/dialog/add-video-link-dialog.js +++ b/frontend/src/components/dialog/add-video-link-dialog.js @@ -21,7 +21,7 @@ class AddVideoLink extends React.Component { } isValidVideoLink = (link) => { - const videoRegex = /v\.qq\.com|youtube\.com/i; + const videoRegex = /v\.qq\.com|youtube\.com|v\.youku\.com|bilibili\.com/i; return videoRegex.test(link); }; @@ -36,7 +36,7 @@ class AddVideoLink extends React.Component { this.setState({ videoLink: videoLink, isSubmitBtnActive: isValid, - errMessage: isValid ? '' : gettext('Please enter a valid Youtube or Tencent video URL.'), + errMessage: isValid ? '' : gettext('Please enter a valid video URL.'), }); }; @@ -78,7 +78,7 @@ class AddVideoLink extends React.Component { /> -
{gettext('Support Youtube and Tencent video link')}
+
{gettext('Support Youtube, Tencent, Bilibili and more')}
{this.state.errMessage && {this.state.errMessage}}