backbone-query-parameters
backbone-query-parameters copied to clipboard
Problem with optional path parameter names
When using optional path parameters with Backbone.Router.namedParameters = true, the extracted parameter name includes the trailing ')' or the starting '(' of a subsequent optional paramter.
The problem can be solved by changing the namedPattern regexp from /:*/g to /:*/g
All tests pass after the change (except test 263, which was failing anyway).
Should I make a pull request, considering that the change is extremely simple?