Fixed processDimensionStartingNode regular expression
This commit is contained in:
parent
521f799366
commit
d82ab994d2
@ -220,9 +220,8 @@ class RowIterator implements IteratorInterface
|
|||||||
{
|
{
|
||||||
// Read dimensions of the sheet
|
// Read dimensions of the sheet
|
||||||
$dimensionRef = $xmlReader->getAttribute(self::XML_ATTRIBUTE_REF); // returns 'A1:M13' for instance (or 'A1' for empty sheet)
|
$dimensionRef = $xmlReader->getAttribute(self::XML_ATTRIBUTE_REF); // returns 'A1:M13' for instance (or 'A1' for empty sheet)
|
||||||
if (preg_match('/[A-Z\d]+:([A-Z\d]+)/', $dimensionRef, $matches)) {
|
if (preg_match('/[A-Z]+\d+:([A-Z]+\d+)/', $dimensionRef, $matches)) {
|
||||||
$lastCellIndex = $matches[1];
|
$this->numColumns = CellHelper::getColumnIndexFromCellIndex($matches[1]) + 1;
|
||||||
$this->numColumns = CellHelper::getColumnIndexFromCellIndex($lastCellIndex) + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return XMLProcessor::PROCESSING_CONTINUE;
|
return XMLProcessor::PROCESSING_CONTINUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user