| 31 | * @returns {string} The cleaned class names string. |
| 32 | */ |
| 33 | export const cleanClassNames = params => { |
| 34 | return params |
| 35 | .replace(/[\n\r]+/g, '') // Remove new lines |
| 36 | .replace(/\s+/g, ' ') // Replace multiple spaces with a single space |
| 37 | .trim(); // Trim leading/trailing spaces |
| 38 | }; |
| 39 | |
| 40 | /** |
| 41 | * Applies the correct indentation to each class name in the string. |
no outgoing calls
no test coverage detected