Skip to content

Commit

Permalink
fix(content types): fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 committed Oct 10, 2020
1 parent 04d9d99 commit ae0bfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContentStorer.ts
Expand Up @@ -480,7 +480,7 @@ export default class ContentStorer {
return (
// Check if a path is a URL without a protocol prefix, like
// youtu.be/XXX
/.+?\..+\/.+/.test(brokenPath) ||
/^[^.\/]+?\.[^.\/]+\/.+$/.test(brokenPath) ||
// The H5P editor produces this non-standard mime-type, so we can
// use it to detect URLs.
(mimetype && mimetype.toLowerCase() === 'video/youtube')
Expand Down

0 comments on commit ae0bfb1

Please sign in to comment.