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:
Harshvardhan Malpani 2019-05-30 14:04:58 +05:30 committed by Mark Baker
parent 7c3465851c
commit e096391f54
1 changed files with 1 additions and 1 deletions

View File

@ -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);