8000 [Routing] fixed exception message. · phreaknerd/symfony@04ae7cc · GitHub
[go: up one dir, main page]

Skip to content

Commit 04ae7cc

Browse files
author
Hugo Hamon
committed
[Routing] fixed exception message.
1 parent f7647f9 commit 04ae7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getIterator()
9595
public function add($name, Route $route)
9696
{
9797
if (!preg_match('/^[a-z0-9A-Z_.]+$/', $name)) {
98-
throw new \InvalidArgumentException(sprintf('The provided route name "%s" contains non valid characters. A route name must only contain digits (0-9), letters (A-Z), underscores (_) and dots (.).', $name));
98+
throw new \InvalidArgumentException(sprintf('The provided route name "%s" contains non valid characters. A route name must only contain digits (0-9), letters (a-z and A-Z), underscores (_) and dots (.).', $name));
9999
}
100100

101101
$parent = $this;

0 commit comments

Comments
 (0)
0