(width: string)
| 10 | } |
| 11 | |
| 12 | function sanitizeWidth(width: string): string { |
| 13 | // Extract only numeric characters |
| 14 | const numericWidth = width.replace(/[^0-9]/g, '') |
| 15 | return numericWidth || '' |
| 16 | } |
| 17 | |
| 18 | function sanitizeAlignment(alignment: string): string { |
| 19 | // Only allow specific alignment values |
no outgoing calls
no test coverage detected