Skip to content

Commit

Permalink
fix: not allow av id
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 8, 2023
1 parent 673e421 commit ca226dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const Home: NextPage<{
// note: auto refactor by ChatGPT
const videoUrl = url || currentVideoUrl;
if (
!videoUrl.includes("bilibili.com") &&
!videoUrl.includes("youtube.com")
// https://www.bilibili.com/video/BV1AL4y1j7RY
!(videoUrl.includes("bilibili.com/video/BV") || videoUrl.includes("youtube.com"))
) {
toast({
title: "暂不支持此视频链接",
Expand Down

1 comment on commit ca226dd

@vercel
Copy link

@vercel vercel bot commented on ca226dd Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.