Grabbed dndbeyond's source code

```
~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js
```
This commit is contained in:
2025-05-28 11:50:03 -07:00
commit 8df9031d27
3592 changed files with 319051 additions and 0 deletions
@@ -0,0 +1,15 @@
/**
* Converts a string from other cases to camelCase
* @param string the value to camelCase
* @example
* camelCase('foo-bar') // 'fooBar'
*/
export const camelCase = (string: string) => string
.replace(/([A-Z])([A-Z])/g, '$1 $2')
.replace(/([a-z])([A-Z])/g, '$1 $2')
.replace(/[^a-zA-Z\u00C0-\u00ff]/g, ' ')
.toLowerCase()
.split(' ')
.filter(value => value)
.map((s, i) => (i > 0 ? s[0].toUpperCase() + s.slice(1) : s))
.join('')