@webtypen/webframez-core 0.3.18 → 0.3.19

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.
@@ -215,9 +215,9 @@ class RouterFacade {
215
215
  .replace(/\/:\w+\?/g, "(?:/([^/]+))?")
216
216
  .replace(/\/:\w+/g, "/([^/]+)")
217
217
  .replace(/\/\*\*/g, "/(.*)") // Catchall wildcard: /**
218
- .replace(/\/\*/g, "/([^/]*)")
218
+ .replace(/\/\*/g, "(?:/(.*))??") // Single wildcard: /* (optional trailing content)
219
219
  .replace(/\*\*/g, "(.*)")
220
- .replace(/\*/g, "([^/]*)")
220
+ .replace(/\*/g, "(.*)")
221
221
  .replace(/\//g, "\\/") +
222
222
  "$";
223
223
  const match = url.match(regex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -246,9 +246,9 @@ class RouterFacade {
246
246
  .replace(/\/:\w+\?/g, "(?:/([^/]+))?")
247
247
  .replace(/\/:\w+/g, "/([^/]+)")
248
248
  .replace(/\/\*\*/g, "/(.*)") // Catchall wildcard: /**
249
- .replace(/\/\*/g, "/([^/]*)")
249
+ .replace(/\/\*/g, "(?:/(.*))??") // Single wildcard: /* (optional trailing content)
250
250
  .replace(/\*\*/g, "(.*)")
251
- .replace(/\*/g, "([^/]*)")
251
+ .replace(/\*/g, "(.*)")
252
252
  .replace(/\//g, "\\/") +
253
253
  "$";
254
254
  const match = url.match(regex);