diff --git a/src/AppBundle/Extractor/Gfycat.php b/src/AppBundle/Extractor/Gfycat.php index 004b8c34..aff4c6c8 100644 --- a/src/AppBundle/Extractor/Gfycat.php +++ b/src/AppBundle/Extractor/Gfycat.php @@ -27,8 +27,8 @@ public function match($url) // remove unecessary stuff from url $path = str_replace('gifs/detail/', '', $path); - // match gfycat id - preg_match('/([a-zA-Z]+)/i', $path, $matches); + // match gfycat id with a minimum length or 4 to avoid i18n + preg_match('/([a-zA-Z]{4,})/i', $path, $matches); if (!isset($matches[1])) { return false;