summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrupertj2018-10-16 08:17:34 (GMT)
committerRobin Ingelbrecht2018-10-16 08:17:34 (GMT)
commit8ba0d1822d5f558050353579ff88845bbef7c8b2 (patch)
tree77297ac0c596ad9cb78d35bc557837d2621b216d
parent259af7604f0b1d53143b493159eaa9e044e121e2 (diff)
Issue #2915496 by rupertj: File extension match should not be case sensitiveHEAD8.x-1.18.x-1.x
-rw-r--r--src/Plugin/video_embed_field/Provider/Html5.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugin/video_embed_field/Provider/Html5.php b/src/Plugin/video_embed_field/Provider/Html5.php
index 60f133d..a645be6 100644
--- a/src/Plugin/video_embed_field/Provider/Html5.php
+++ b/src/Plugin/video_embed_field/Provider/Html5.php
@@ -188,7 +188,7 @@ class Html5 extends ProviderPluginBase {
* {@inheritdoc}
*/
public static function getIdFromInput($input) {
- $pattern = "/(?:(\/)|(?:(?|http|https|ftp)(?|\/\/))).*(mp4|ogg|webm)/";
+ $pattern = "/(?:(\/)|(?:(?|http|https|ftp)(?|\/\/))).*(mp4|ogg|webm)/i";
$matches = array();
preg_match($pattern, $input, $matches);