Skip to content

Commit

Permalink
Added webp in url pattern, fixes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker authored May 30, 2022
1 parent b8606d3 commit 1dc063c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class URL
*
* @return string
*/
public const PATTERN = '(.+)-([0-9_]+)x([0-9_]+)(-[0-9a-zA-Z(),\-._]+)*\.(jpg|jpeg|png|gif|JPG|JPEG|PNG|GIF)$';
public const PATTERN = '(.+)-([0-9_]+)x([0-9_]+)(-[0-9a-zA-Z(),\-._]+)*\.(jpg|jpeg|png|gif|webp|JPG|JPEG|PNG|GIF|WEBP)$';

/**
* Croppa general configuration.
Expand Down

0 comments on commit 1dc063c

Please sign in to comment.