diff --git a/src/Url/UrlTransformer.php b/src/Url/UrlTransformer.php index 23e77ce..c64cdce 100644 --- a/src/Url/UrlTransformer.php +++ b/src/Url/UrlTransformer.php @@ -56,7 +56,7 @@ final class UrlTransformer { $sources ); - return '~(?transformString( + 'https://example.test@evil.test/path https://example.test/path', + $mappings + ) + ); + } + public function test_it_prefers_more_specific_overlapping_mappings(): void { $transformer = new UrlTransformer(); $mappings = new UrlMappingCollection(