restricting cell ranges

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@120525 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xavier Noguer Gallego 2003-03-17 23:19:59 +00:00
parent 2eaa143855
commit 709b859f13
1 changed files with 3 additions and 3 deletions

View File

@ -1306,7 +1306,7 @@ class Parser extends PEAR
return($result);
}
// if it's a reference
if (eregi("^[A-Z][0-9]+$",$this->_current_token))
if (eregi("^[A-I]?[A-Z][0-9]+$",$this->_current_token))
{
$result = $this->_current_token;
$this->_advance();
@ -1320,8 +1320,8 @@ class Parser extends PEAR
return($result);
}
// if it's a range
elseif (eregi("^[A-Z]?[A-Z][0-9]+:[A-Z]?[A-Z][0-9]+$",$this->_current_token) or
eregi("^[A-Z]?[A-Z][0-9]+\.\.[A-Z]?[A-Z][0-9]+$",$this->_current_token))
elseif (eregi("^[A-I]?[A-Z][0-9]+:[A-I]?[A-Z][0-9]+$",$this->_current_token) or
eregi("^[A-I]?[A-Z][0-9]+\.\.[A-I]?[A-Z][0-9]+$",$this->_current_token))
{
$result = $this->_current_token;
$this->_advance();