Skip to content

Commit 9fdd779

Browse files
committed
Posibility to add or conditions in named parameters [ | ]
1 parent 8f80e9f commit 9fdd779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function preparePattern()
134134
return isset($this->paramRules[$match['name']]) ? '(' . $this->paramRules[$match['name']] . ')' : '([\w-]+)';
135135
}, $this->getUrl());
136136

137-
return sprintf('|^%s$|', $pattern);
137+
return sprintf('~^%s$~', $pattern);
138138
}
139139

140140
/**

0 commit comments

Comments
 (0)