@shakerquiz/utilities 0.6.7 → 0.6.8

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "0.6.7",
4
+ "version": "0.6.8",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -6,7 +6,7 @@ export const RoutePathnameParams = (() => {
6
6
  let object = {}
7
7
 
8
8
  for (const route in RoutePathname)
9
- object[route] = RoutePathname[route].match(/(:(\w)+)/g)
9
+ object[route] = RoutePathname[route].match(/(:(\w)+)/g) ?? []
10
10
 
11
11
  return Object.freeze(object)
12
12
  })()