diff --git a/composer.json b/composer.json index 113b497..4c80e33 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "symbiotic/full", "description": "Complete assembly of the SymbioticPHP framework with a cached container and optimized core services", "license": "BSD-3-Clause", - "version": "1.4.0.3", + "version": "1.4.1.3", "homepage": "https://symbioticphp.com", "authors": [ { diff --git a/src/Routing/PackagesSettlements.php b/src/Routing/PackagesSettlements.php index f552488..04fc1c9 100644 --- a/src/Routing/PackagesSettlements.php +++ b/src/Routing/PackagesSettlements.php @@ -116,6 +116,6 @@ public function getByKey(string $key, mixed $value, bool $all = false): Settleme */ public function getPathByUrl(string $url): string { - return preg_replace('~(^((.+?\..+?)[/])|(^(https?://)?localhost(:\d+)?[/]))(.*)~i', '/', $url); + return parse_url($url, PHP_URL_PATH); } } \ No newline at end of file