create-prisma-php-app 1.11.14 → 1.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,8 +167,8 @@ function dynamicRoute($uri)
167
167
  $cleanedRoute = preg_replace('/\[\.\.\..*?\].*/', '', $normalizedRoute);
168
168
  if (strpos('/src/app/' . $normalizedUri, $cleanedRoute) === 0) {
169
169
  if (strpos($normalizedRoute, 'route.php') !== false) {
170
- $normalizedUriEdited = "src/app/$normalizedUri";
171
- $trimNormalizedUriEdited = trim($normalizedUriEdited, $cleanedRoute);
170
+ $normalizedUriEdited = "/src/app/$normalizedUri";
171
+ $trimNormalizedUriEdited = str_replace($cleanedRoute, '', $normalizedUriEdited);
172
172
  $explodedNormalizedUri = explode('/', $trimNormalizedUriEdited);
173
173
  $pattern = '/\[\.\.\.(.*?)\]/';
174
174
  if (preg_match($pattern, $normalizedRoute, $matches)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.11.14",
3
+ "version": "1.11.15",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",