01501b6ff2
When a formatting string has a locale in it an error can occur when outputting. For example when the format string with a locale such as `[$-1010409]#,##0.00;-#,##0.00` appears, a value of 9.98 comes back as $9.98. This is because at https://github.com/PHPOffice/PhpSpreadsheet/blob/1.4.0/src/PhpSpreadsheet/Style/NumberFormat.php#L711 the numberFormat regex will match to the zeros inside the locale ([$-1010409]). Attempts to adjust the numberFormat regex caused regressions in other tests. Adding another step to filter out the locale caused no regression. |
||
---|---|---|
.. | ||
Calculation | ||
Cell | ||
Functional/TypeAttributePreservation | ||
Reader | ||
Shared | ||
Style | ||
Writer | ||
CalculationBinaryComparisonOperation.php | ||
CellAbsoluteCoordinate.php | ||
CellAbsoluteReference.php | ||
CellBuildRange.php | ||
CellCoordinates.php | ||
CellExtractAllCellReferencesInRange.php | ||
CellGetRangeBoundaries.php | ||
CellMergeRangesInCollection.php | ||
CellRangeBoundaries.php | ||
CellRangeDimension.php | ||
CellSplitRange.php | ||
ColumnIndex.php | ||
ColumnString.php | ||
CoordinateIsRange.php |