(str)
| 13 | |
| 14 | // `i-am-article` becomes `I Am Article` |
| 15 | function prettify(str) { |
| 16 | return str.split('-').map(function capitalize(part) { |
| 17 | return part.charAt(0).toUpperCase() + part.slice(1); |
| 18 | }).join(' '); |
| 19 | } |
| 20 | |
| 21 | // Folder name 'ui-examples' becomes 'ui' (the way it should be displayed in the documentation tree) |
| 22 | function updateSubfoldersName(str) { |
no outgoing calls
no test coverage detected