Skip to content

Commit

Permalink
🐛 verbose check should consider avif
Browse files Browse the repository at this point in the history
closes #70

Signed-off-by: bnomei <b@bnomei.com>
  • Loading branch information
bnomei committed Apr 14, 2022
1 parent 5c8a33c commit 5df91d6
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion classes/RenderJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function remoteGetPage(string $pageId): string

private function verboseCheckContent(string $content)
{
preg_match_all('~/media/pages/([a-zA-Z0-9-_./]+.(?:png|jpg|jpeg|webp|gif))~', $content, $matches);
preg_match_all('~/media/pages/([a-zA-Z0-9-_./]+.(?:png|jpg|jpeg|webp|avif|gif))~', $content, $matches);
if ($matches && count($matches) > 1) {
$this->found = array_merge($this->found, $matches[1]);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-janitor",
"type": "kirby-plugin",
"version": "2.15.0",
"version": "2.15.1",
"license": "MIT",
"description": "Kirby 3 Plugin for running jobs like cleaning the cache from within the Panel, PHP code or a cronjob",
"authors": [
Expand Down
8 changes: 8 additions & 0 deletions vendor/Expectation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Pest;

/**
*/
final class Expectation {}
5 changes: 5 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

// autoload.php @generated by Composer

if (PHP_VERSION_ID < 50600) {
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
exit(1);
}

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit93e06e1702e47b8b6c35e36f5d963e7d::getLoader();
2 changes: 1 addition & 1 deletion vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function getLoader()
spl_autoload_unregister(array('ComposerAutoloaderInit93e06e1702e47b8b6c35e36f5d963e7d', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
\Composer\Autoload\ComposerStaticInit93e06e1702e47b8b6c35e36f5d963e7d::getInitializer($loader)();
call_user_func(\Composer\Autoload\ComposerStaticInit93e06e1702e47b8b6c35e36f5d963e7d::getInitializer($loader));

$loader->register(true);

Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php return array(
'root' => array(
'pretty_version' => '2.15.0',
'version' => '2.15.0.0',
'pretty_version' => '2.15.1',
'version' => '2.15.1.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby3-janitor' => array(
'pretty_version' => '2.15.0',
'version' => '2.15.0.0',
'pretty_version' => '2.15.1',
'version' => '2.15.1.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 5df91d6

Please sign in to comment.