Skip to content

Commit

Permalink
Merge pull request #895 from ergebnis/fix/escape
Browse files Browse the repository at this point in the history
Remove unnecessary escape characters
  • Loading branch information
localheinz authored May 2, 2023
2 parents 7e7e266 + aecc535 commit d5e7123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vendor/Composer/ComposerJsonNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d5e7123

Please sign in to comment.