Commit 22eb363
fix: move empty id check before visited set, add parentheses for operator precedence
- Move !id guard before visited.add() to prevent empty strings being added
- Add parentheses around range checks in CSS escape fallback for correct precedence
Agent-Logs-Url: https://github.com/antvis/Infographic/sessions/289607cf-6b2e-4c1c-b79d-ec538a1b098c
Co-authored-by: Aarebecca <25787943+Aarebecca@users.noreply.github.com>1 parent 70471bf commit 22eb363
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
492 | 493 | | |
493 | 494 | | |
494 | 495 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 496 | | |
500 | 497 | | |
501 | 498 | | |
| |||
567 | 564 | | |
568 | 565 | | |
569 | 566 | | |
570 | | - | |
571 | | - | |
572 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
573 | 570 | | |
574 | 571 | | |
575 | 572 | | |
| |||
0 commit comments