rhysbrettbowen/PlastronJS — pull request #10 by artemkozlov (2012-08-31 13:28:49+00:00)
Title: Add non-capturing group to route.

I found useful to exclude some groups from capturing, this will make route handler more concise.
For example your route example can be rewritten as:

"/note=:id{/:operation}{?abc=:abc}"

in this case handler function will have signature:

function(fragment, id,operation,abc)

and for /note=1234567890/edit?abc=123 will give result:

function(fragment, id, operation, abc) {
console.log(fragment) // /note=1234567890/edit?abc=123
console.log(id); // 1234567890
console.log(operation); // edit
console.log(abc); // 123
}

Btw there is mistake in doc, first function argument will always be full fragment string.

Thanks, Artem.