Skip to content

Commit fc55b75

Browse files
committed
Update to Splat 6.0.0
1 parent 0f66cb9 commit fc55b75

4 files changed

Lines changed: 21 additions & 19 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lib-libxml": "*",
3131
"yahnis-elsts/plugin-update-checker": "*",
3232
"masterminds/html5": "*",
33-
"phlak/splat": "^5.0",
33+
"phlak/splat": "*",
3434
"symfony/finder": "*",
3535
"aws/aws-sdk-php": "*",
3636
"guzzlehttp/guzzle": "*",

composer.lock

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
pname = "${name}-composer-deps";
2525
version = "1.0.0";
2626
src = composerSrc;
27-
vendorHash = "sha256-QbjWrrSrwglNHWCneVsVX92fEx8QOYFqnZ40adAn8MY=";
27+
vendorHash = "sha256-j8FtXqUJbhRubgnSLkdQtj5/uBdcMz1wwYEKx2ugIiw=";
2828
});
2929
composerVendorDev = php.mkComposerVendor (finalAttrs: {
3030
composerNoDev = false;
3131
pname = "${name}-composer-deps-dev";
3232
version = "1.0.0";
3333
src = composerSrc;
34-
vendorHash = "sha256-d07vqX3PKqCh46bqHidMzz9y70cs4W/fY9/+9/Tk5Bc=";
34+
vendorHash = "sha256-+RDncTDi3RMusRpvcy0xozmLNmHTCo6/jHlxA91TJMM=";
3535
});
3636
staticDeploySrc = pkgs.lib.cleanSourceWith {
3737
src = self;

src/FileIgnorePattern.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace StaticDeploy;
44

5+
use PHLAK\Splat\Anchors;
56
use PHLAK\Splat\Pattern;
67

78
class FileIgnorePattern {
@@ -49,14 +50,14 @@ public function __construct(
4950
$pattern = '/' . $pattern;
5051
}
5152

52-
$regex = Pattern::make( $pattern )->toRegex( Pattern::BOTH_ANCHORS );
53+
$regex = Pattern::make( $pattern )->toRegex( Anchors::BOTH );
5354
// Make it case-insensitive
5455
$this->regex = $regex . 'i';
5556

5657
// URL paths can match with or without trailing /
5758
// We add a .* to make directory patterns also match
5859
// child paths
59-
$url_regex = Pattern::make( $pattern )->toRegex( Pattern::START_ANCHOR );
60+
$url_regex = Pattern::make( $pattern )->toRegex( Anchors::START );
6061
$this->url_regex = substr( $url_regex, 0, -1 ) . '(/.*)?$#i';
6162
}
6263

0 commit comments

Comments
 (0)