mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
4357cda7b8
See [`no-shadow`](https://eslint.org/docs/rules/no-shadow) for more information. This change enables `no-shadow` and fixes the issues raised by the rule.
6 lines
143 B
JavaScript
6 lines
143 B
JavaScript
export function camelCaseToCapitalize (str = '') {
|
|
return str
|
|
.replace(/([A-Z])/ug, ' $1')
|
|
.replace(/^./u, (s) => s.toUpperCase())
|
|
}
|