DASPRiD / Dash

Flexible PSR-7 compliant HTTP router
BSD 2-Clause "Simplified" License
29 stars 9 forks source link

/[:a[/:b]] not working? #49

Closed devosc closed 10 years ago

devosc commented 10 years ago
'zf2-match' => [
  new Segment('/', '/[:a[/:b]]', ['a' => '[a-zA-Z][a-zA-Z0-9_-]*', 'b' => '[a-zA-Z][a-zA-Z0-9_-]*']),
  '/indexA/indexB',
  0,
  ['a' => 'indexA', 'b' => 'indexB'],
]

SegmentTest::testCompiling returns '/' but I was expecting it to return '/indexA/indexB', is this a bug?

DASPRiD commented 10 years ago

That indeed looks wrong, looking into it.

DASPRiD commented 10 years ago

There you go, thanks for the report :+1:

devosc commented 10 years ago

Thanks!