Skip to content

Commit 3f21660

Browse files
committed
Fixed bug in CellEntry::setCellLocation() regex for extracting the cell location only handled single digits but now supports any row/column
1 parent 893029a commit 3f21660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Spreadsheet/CellEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function update($value)
151151
protected function setCellLocation()
152152
{
153153
$id = $this->xml->id->__toString();
154-
preg_match('@/R(\d)C(\d)@', $id, $matches);
154+
preg_match('@/R(\d+)C(\d+)@', $id, $matches);
155155

156156
if(count($matches) !== 3) {
157157
throw new Exception('Filed to get the location of the cell');

0 commit comments

Comments
 (0)