@symbo.ls/utils 2.11.273 → 2.11.323

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/utils",
3
- "version": "2.11.273",
3
+ "version": "2.11.323",
4
4
  "main": "src/index.js",
5
5
  "author": "symbo.ls",
6
6
  "license": "ISC",
7
7
  "dependencies": {
8
8
  "@domql/utils": "latest"
9
9
  },
10
- "gitHead": "8a2d3454c3c075aab01f7212cb1c07ce2d4a39f0"
10
+ "gitHead": "ad959e4a3b3722e3e0f36f7a98298ea179620281"
11
11
  }
package/src/index.js CHANGED
@@ -36,7 +36,7 @@ export const toDashCase = val => val
36
36
  .replace(/-+/g, '-') // Replace consecutive dashes with a single dash
37
37
  .replace(/^-|-$/g, '') // Remove leading and trailing dashes
38
38
 
39
- export const toDescriptionCase = str => {
39
+ export const toDescriptionCase = (str = '') => {
40
40
  const result = str.replace(/([A-Z])/g, ' $1')
41
41
  return result.charAt(0).toUpperCase() + result.slice(1)
42
42
  }