Adding word boundaries to the request patterns. Also adding lookaheads

to prevent methods from being changed.
This commit is contained in:
mark_story 2011-01-01 22:58:40 -05:00
parent 6e1f45abb3
commit c6e1c3d562

View file

@ -175,32 +175,32 @@ class UpgradeShell extends Shell {
$patterns = array( $patterns = array(
array( array(
'$this->data -> $this->request->data', '$this->data -> $this->request->data',
'/(\$this->data)/', '/(\$this->data\b(?!\())/',
'$this->request->data' '$this->request->data'
), ),
array( array(
'$this->params -> $this->request->params', '$this->params -> $this->request->params',
'/(\$this->params)/', '/(\$this->params\b(?!\())/',
'$this->request->params' '$this->request->params'
), ),
array( array(
'$this->webroot -> $this->request->webroot', '$this->webroot -> $this->request->webroot',
'/(\$this->webroot)/', '/(\$this->webroot\b(?!\())/',
'$this->request->webroot' '$this->request->webroot'
), ),
array( array(
'$this->base -> $this->request->base', '$this->base -> $this->request->base',
'/(\$this->base)/', '/(\$this->base\b(?!\())/',
'$this->request->base' '$this->request->base'
), ),
array( array(
'$this->here -> $this->request->here', '$this->here -> $this->request->here',
'/(\$this->here)/', '/(\$this->here\b(?!\())/',
'$this->request->here' '$this->request->here'
), ),
array( array(
'$this->action -> $this->request->action', '$this->action -> $this->request->action',
'/(\$this->action)/', '/(\$this->action\b(?!\())/',
'$this->request->action' '$this->request->action'
), ),
); );