(fileName: string)
| 78 | * @returns string |
| 79 | */ |
| 80 | export function getFileCssName(fileName: string) { |
| 81 | if (!fileName) { |
| 82 | return; |
| 83 | } |
| 84 | const name = fileName.replace(/([A-Z])/g, '-$1').toLowerCase(); |
| 85 | return (`lce-${name}`) |
| 86 | .split('-') |
| 87 | .filter((p) => !!p) |
| 88 | .join('-'); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * check if a object is type of JSSlot |
no test coverage detected
searching dependent graphs…