(name)
| 278 | } |
| 279 | |
| 280 | export const toCamelCase = function (name) { |
| 281 | if (typeof name !== 'string') { |
| 282 | return name |
| 283 | } |
| 284 | return name.replace(/-(\w)/gi, (_word, letter) => { |
| 285 | return letter.toUpperCase() |
| 286 | }) |
| 287 | } |
| 288 | |
| 289 | function convertFontWeightToNumber(name) { |
| 290 | const fontWeightPatterns = [ |
no outgoing calls
no test coverage detected