We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a79f7b commit 4f7b7ecCopy full SHA for 4f7b7ec
app/Libraries/Blog.php
@@ -295,9 +295,9 @@ protected function parseVideoTags(?string $html = null)
295
// Since the plugin doesn't support video embeds, yet,
296
// wire our own up. The syntax for video embeds is
297
// ![[ https://youtube.com/watch?v=xlkjsdfhlk ]]
298
- preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches);
+ $result = preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches);
299
300
- if ($matches === []) {
+ if ($result === false || $result === 0) {
301
return $html;
302
}
303
0 commit comments