View Full Version : Ext.Router doesn't work expected if url path includes hyphen...

5 Oct 2011, 1:01 AM
I created route code to matching url like 'bf36d815-53d5-4aae-8cbd-bccfc0faccbf/view',
but doesn't work well.

map.connect(':resourceId/view', {controller: 'document', action: 'view'});

It seems that hyphen included url path is doesn't work,
because set regular expression in Ext.util.Route.createMatcherRegex is "[%a-zA-Z0-9\\_\\s,]+".

If changed regular expression "[%a-zA-Z0-9\\_\\s\-,]+", It work expected.

15 Jan 2012, 8:32 AM
Thank you, I have been running into this issue lately!
Delivra (http://www.delivra.com/)