Commit 5002d4f
committed
fix: handle negative slice indices correctly
- Fixes test failure in svg_text_utils_test.js where slice(0, negative)
returned a string instead of empty string (unlike substr).
- Fixes similar potential issues in rangeslider/defaults.js and
cartesian/axes.js using Math.max(0, ...).1 parent 2becc65 commit 5002d4f
File tree
3 files changed
+3
-3
lines changed- src
- components/rangeslider
- lib
- plots/cartesian
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2163 | 2163 | | |
2164 | 2164 | | |
2165 | 2165 | | |
2166 | | - | |
| 2166 | + | |
2167 | 2167 | | |
2168 | 2168 | | |
2169 | 2169 | | |
| |||
0 commit comments