* Convert dash-case-name to PascalCaseName. * @param {string} name * @return {string}
(name)
| 49 | * @return {string} |
| 50 | */ |
| 51 | function dashToPascalCase(name) { |
| 52 | return name.replace(/(?:-|^)([a-z])/g, (_, c) => c.toUpperCase()); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Replaces from a map of keys/values. |
no test coverage detected