OSDN Git Service
(root)
/
php-libraries
/
Router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85fdc6a
)
Use single quotes when possible
author
Jefersson Nathan
<admin@phpse.net>
Sat, 2 Apr 2016 11:21:37 +0000
(08:21 -0300)
committer
Jefersson Nathan
<admin@phpse.net>
Thu, 21 Apr 2016 11:21:37 +0000
(08:21 -0300)
src/Route.php
patch
|
blob
|
history
diff --git
a/src/Route.php
b/src/Route.php
index
e95de46
..
a18a47b
100755
(executable)
--- a/
src/Route.php
+++ b/
src/Route.php
@@
-135,7
+135,7
@@
class Route
public function getRegex()
{
- return preg_replace_callback(
"/(:\w+)/"
, array(&$this, 'substituteFilter'), $this->url);
+ return preg_replace_callback(
'/(:\w+)/'
, array(&$this, 'substituteFilter'), $this->url);
}
private function substituteFilter($matches)
@@
-144,7
+144,7
@@
class Route
return $this->filters[$matches[1]];
}
- return
"([\w-%]+)"
;
+ return
'([\w-%]+)'
;
}
public function getParameters()