NamedRanges with ' in name wont get wiped (#988)
Example: 'attr_values'!$D$3:$D$49 earlier this would probably be flushed and getNamedRanges() would not show it because sheet "'attr_values'" does not exist. It should be "attr_values"
This commit is contained in:
parent
7c3465851c
commit
e096391f54
|
@ -1908,7 +1908,7 @@ class Xlsx extends BaseReader
|
||||||
if (strpos((string) $definedName, '!') !== false) {
|
if (strpos((string) $definedName, '!') !== false) {
|
||||||
// Extract sheet name
|
// Extract sheet name
|
||||||
$extractedSheetName = Worksheet::extractSheetTitle((string) $definedName, true);
|
$extractedSheetName = Worksheet::extractSheetTitle((string) $definedName, true);
|
||||||
$extractedSheetName = $extractedSheetName[0];
|
$extractedSheetName = trim($extractedSheetName[0],"'");
|
||||||
|
|
||||||
// Locate sheet
|
// Locate sheet
|
||||||
$locatedSheet = $excel->getSheetByName($extractedSheetName);
|
$locatedSheet = $excel->getSheetByName($extractedSheetName);
|
||||||
|
|
Loading…
Reference in New Issue