From 1dc063c3684019eeaa02b2175d43c0d997659b84 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Mon, 30 May 2022 11:25:12 +0200 Subject: [PATCH] Added webp in url pattern, fixes #208 --- src/URL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/URL.php b/src/URL.php index 2f2d895..973faf7 100644 --- a/src/URL.php +++ b/src/URL.php @@ -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.