This project is archived and is in readonly mode.
Problems with POSIX character classes as routing constraints
-
Andrew White
- Milestone cleared.
- State changed from new to open
- Assigned user set to josh
- Importance changed from to Low
You're missing a do after the regexp. After I add the do then rake routes runs fine but I do get an error in route generation and recognition. It looks as though the error is in the Regin regexp analyser - it appears to be removing the closing square bracket from the character class.
-
Andrew White
Yup, the Regin parser doesn't handle the named character class:
>> Regin.parse(/\A[[:alnum:]]{40}\Z/).to_a => [#<Anchor "\\A">, #<CharacterClass "[[:alnum:]">, #<Character "]{40}">, #<Anchor "\\Z">] -
Andrew White
Florian, can you gem install -v=0.6.13 'rack-mount' and see if that fixes your problem - it does for me.
-
Andrew White
- Assigned user changed from josh to José Valim
Patch to bump rack-mount to 0.6.13 and add test case to catch any regressions.
-
Repository
- State changed from open to resolved
(from [6c3f5eb76c2277e8a8e94d8c7d8942dc2d11a3df]) Bump rack-mount to 0.6.13 and add test case for named character classes [#5509 Problems with POSIX character classes as routing constraints state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/6c3f5eb76c2277e8a8e94d8c7d8942... -
Repository
(from [69ae216bcf9fd8b7ba4f69681a410b9e1e7541ca]) Bump rack-mount to 0.6.13 and add test case for named character classes [#5509 Problems with POSIX character classes as routing constraints state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
http://github.com/rails/rails/commit/69ae216bcf9fd8b7ba4f69681a410b... -
Florian Aßmann
Works fine, thumbs up!
