Skip to content

Commit

Permalink
Adding word boundaries to the request patterns. Also adding lookaheads
Browse files Browse the repository at this point in the history
to prevent methods from being changed.
  • Loading branch information
markstory committed Jan 2, 2011
1 parent 6e1f45a commit c6e1c3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cake/console/shells/upgrade.php
Expand Up @@ -175,32 +175,32 @@ public function request() {
$patterns = array(
array(
'$this->data -> $this->request->data',
'/(\$this->data)/',
'/(\$this->data\b(?!\())/',
'$this->request->data'
),
array(
'$this->params -> $this->request->params',
'/(\$this->params)/',
'/(\$this->params\b(?!\())/',
'$this->request->params'
),
array(
'$this->webroot -> $this->request->webroot',
'/(\$this->webroot)/',
'/(\$this->webroot\b(?!\())/',
'$this->request->webroot'
),
array(
'$this->base -> $this->request->base',
'/(\$this->base)/',
'/(\$this->base\b(?!\())/',
'$this->request->base'
),
array(
'$this->here -> $this->request->here',
'/(\$this->here)/',
'/(\$this->here\b(?!\())/',
'$this->request->here'
),
array(
'$this->action -> $this->request->action',
'/(\$this->action)/',
'/(\$this->action\b(?!\())/',
'$this->request->action'
),
);
Expand Down

0 comments on commit c6e1c3d

Please sign in to comment.