Skip to content

Commit

Permalink
Merge pull request #4366 from serlo/fix/bug-pasting-images
Browse files Browse the repository at this point in the history
fix(editor): skip other checks if we found editor state in paste
  • Loading branch information
hugotiburtino authored Dec 20, 2024
2 parents 28a02bc + cfdf4cf commit 367c832
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/plugins/video/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export function parseVideoUrl(
`https://player.vimeo.com/video/${vimeo[3]}?autoplay=1`,
VideoType.Vimeo,
]
const serloAssetRegex = /^(https?:\/\/)?(.*?assets\.serlo\.org\/)(.+)/
const serloAssetRegex =
/^(https:\/\/assets\.serlo\.org\/wikimedia\/)(.+)(webm)$/
const serloAsset = serloAssetRegex.exec(inputSrc)
if (serloAsset) return [inputSrc, VideoType.SerloAsset]

Expand Down

0 comments on commit 367c832

Please sign in to comment.