Commit 07c6640
authored
fix: array elements starting with number followed by text parsed as string (#57)
* fix: array elements starting with number followed by text now parsed as string
When parsing inline array values, numbers followed by string tokens
(e.g., `1.0 something`) were incorrectly truncated to just the number.
The fix checks for trailing string tokens after Number/Integer tokens
in parse_tabular_field_value() and treats the combined value as a string,
matching the behavior of regular field value parsing.
Fixes #56
* fix: use non-PI float in test to satisfy clippy approx_constant lint1 parent 4fee255 commit 07c6640
1 file changed
+40
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
1128 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1129 | 1140 | | |
1130 | 1141 | | |
1131 | 1142 | | |
1132 | 1143 | | |
1133 | | - | |
1134 | | - | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1135 | 1154 | | |
1136 | 1155 | | |
1137 | 1156 | | |
| |||
1670 | 1689 | | |
1671 | 1690 | | |
1672 | 1691 | | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1673 | 1710 | | |
0 commit comments