Commit c5b2b75
authored
fix: use shared sanitizeFont in generateMonthlySVG and generateAutoThemeMonthlySVG (JhaSourav07#907)
* fix: use shared sanitizeFont in generateMonthlySVG and generateAutoThemeMonthlySVG
- Both functions defined a local sanitizeFont that stripped single quotes
- This shadowed the imported sanitizeFont from lib/svg/sanitizer.ts
- Replace both local definitions with the shared imported function
- Ensures consistent font sanitization across all badge views
* fix: resolve FONT_MAP string index type error in generateMonthlySVG functions1 parent 750bee0 commit c5b2b75
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| |||
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
589 | | - | |
590 | | - | |
591 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
592 | 594 | | |
593 | 595 | | |
594 | 596 | | |
| |||
0 commit comments