mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 04:28:51 +00:00
Bugfix: Work item 15046 - 1.7.5 fails cell->getCalculatedValue()
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66479 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -40,9 +40,9 @@ if (!defined('CALCULATION_REGEXP_CELLREF')) {
|
||||
// Test for support of \P (multibyte options) in PCRE
|
||||
if(defined('PREG_BAD_UTF8_ERROR')) {
|
||||
// Cell reference (cell or range of cells, with or without a sheet reference)
|
||||
define('CALCULATION_REGEXP_CELLREF','((([^,!]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d+)');
|
||||
define('CALCULATION_REGEXP_CELLREF','((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d{1,7})');
|
||||
// Named Range of cells
|
||||
define('CALCULATION_REGEXP_NAMEDRANGE','((([^,!]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?([_A-Z][_A-Z0-9]*)');
|
||||
define('CALCULATION_REGEXP_NAMEDRANGE','((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?([_A-Z][_A-Z0-9]*)');
|
||||
} else {
|
||||
// Cell reference (cell or range of cells, with or without a sheet reference)
|
||||
define('CALCULATION_REGEXP_CELLREF','(((\w*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d+)');
|
||||
|
||||
Reference in New Issue
Block a user