Skip to content

Commit 613acce

Browse files
committed
change end car
1 parent f5077aa commit 613acce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/Loader/AttributeClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected function addRoute(RouteCollection $collection, object $attr, array $gl
219219
continue;
220220
}
221221
foreach ($paths as $locale => $path) {
222-
if (preg_match(\sprintf('/\{(?|([^\:]++):%s(?:\.[^\}<]++)?|(%1$s))(?:<.*?>)?\}/', preg_quote($param->name)), $path, $matches)) {
222+
if (preg_match(\sprintf('/\{(?|([^\}:<]++):%s(?:\.[^\}<]++)?|(%1$s))(?:<.*?>)?\}/', preg_quote($param->name)), $path, $matches)) {
223223
if (\is_scalar($defaultValue = $param->getDefaultValue()) || null === $defaultValue) {
224224
$defaults[$matches[1]] = $defaultValue;
225225
} elseif ($defaultValue instanceof \BackedEnum) {

0 commit comments

Comments
 (0)