@@ -654,8 +654,8 @@ public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCo
654654 $ row = 10000000 + trim ($ match [3 ], '$ ' );
655655 $ cellIndex = $ column . $ row ;
656656
657- $ newCellTokens [$ cellIndex ] = preg_quote ($ toString );
658- $ cellTokens [$ cellIndex ] = '/(?<!\d\$\!) ' . preg_quote ($ fromString ) . '(?!\d)/i ' ;
657+ $ newCellTokens [$ cellIndex ] = preg_quote ($ toString, ' / ' );
658+ $ cellTokens [$ cellIndex ] = '/(?<!\d\$\!) ' . preg_quote ($ fromString, ' / ' ) . '(?!\d)/i ' ;
659659 ++$ adjustCount ;
660660 }
661661 }
@@ -679,8 +679,8 @@ public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCo
679679 $ row = 10000000 ;
680680 $ cellIndex = $ column . $ row ;
681681
682- $ newCellTokens [$ cellIndex ] = preg_quote ($ toString );
683- $ cellTokens [$ cellIndex ] = '/(?<![A-Z\$\!]) ' . preg_quote ($ fromString ) . '(?![A-Z])/i ' ;
682+ $ newCellTokens [$ cellIndex ] = preg_quote ($ toString, ' / ' );
683+ $ cellTokens [$ cellIndex ] = '/(?<![A-Z\$\!]) ' . preg_quote ($ fromString, ' / ' ) . '(?![A-Z])/i ' ;
684684 ++$ adjustCount ;
685685 }
686686 }
@@ -705,8 +705,8 @@ public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCo
705705 $ row = trim ($ row , '$ ' ) + 10000000 ;
706706 $ cellIndex = $ column . $ row ;
707707
708- $ newCellTokens [$ cellIndex ] = preg_quote ($ toString );
709- $ cellTokens [$ cellIndex ] = '/(?<![A-Z]\$\!) ' . preg_quote ($ fromString ) . '(?!\d)/i ' ;
708+ $ newCellTokens [$ cellIndex ] = preg_quote ($ toString, ' / ' );
709+ $ cellTokens [$ cellIndex ] = '/(?<![A-Z]\$\!) ' . preg_quote ($ fromString, ' / ' ) . '(?!\d)/i ' ;
710710 ++$ adjustCount ;
711711 }
712712 }
@@ -731,8 +731,8 @@ public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCo
731731 $ row = trim ($ row , '$ ' ) + 10000000 ;
732732 $ cellIndex = $ row . $ column ;
733733
734- $ newCellTokens [$ cellIndex ] = preg_quote ($ toString );
735- $ cellTokens [$ cellIndex ] = '/(?<![A-Z\$\!]) ' . preg_quote ($ fromString ) . '(?!\d)/i ' ;
734+ $ newCellTokens [$ cellIndex ] = preg_quote ($ toString, ' / ' );
735+ $ cellTokens [$ cellIndex ] = '/(?<![A-Z\$\!]) ' . preg_quote ($ fromString, ' / ' ) . '(?!\d)/i ' ;
736736 ++$ adjustCount ;
737737 }
738738 }
0 commit comments