From aecc535512a57b4b18f76986d8556b587cf9083f Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Tue, 14 Mar 2023 12:42:50 +0000 Subject: [PATCH] Remove unnecessary escape characters --- src/Vendor/Composer/ComposerJsonNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vendor/Composer/ComposerJsonNormalizer.php b/src/Vendor/Composer/ComposerJsonNormalizer.php index 7abfa57b..930409d6 100644 --- a/src/Vendor/Composer/ComposerJsonNormalizer.php +++ b/src/Vendor/Composer/ComposerJsonNormalizer.php @@ -73,7 +73,7 @@ public function __construct(string $schemaUri) * @see https://github.com/cweagans/composer-patches/blob/1.7.2/src/Patches.php#L315-L329 */ Pointer\Specification::closure(static function (Pointer\JsonPointer $jsonPointer): bool { - return 1 === \preg_match('{^\/extra\/patches\/([^/])+$}', $jsonPointer->toJsonString()); + return 1 === \preg_match('{^/extra/patches/([^/])+$}', $jsonPointer->toJsonString()); }), /** * Repositories need to be iterated in a specific order, but can be an array or an object.