Skip to content

Commit

Permalink
Merge pull request #204 from j0k3r/fix/gfycat-i18n
Browse files Browse the repository at this point in the history
Fix Gfycat i18n in url
  • Loading branch information
j0k3r authored Feb 5, 2019
2 parents c3f8942 + 4cbb396 commit dd212fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AppBundle/Extractor/Gfycat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd212fe

Please sign in to comment.