This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Description
I noticed that if the $format parameter is present, it doesn't respect any potential following parameters:
console.log(oData.parse('$select=foo,bar&$top=10&$format=application/json&$skip=42'));
{
'$select': [ 'foo', 'bar' ],
'$top': 10,
'$format': 'application/json&$skip=42'
}
Note how $skip is not parsed and is instead concatenated to $format.
However, if I move $skip to precede $format everything is parsed as expected:
console.log(oData.parse('$select=foo,bar&$top=10&$skip=42&$format=application/json'));
{
'$select': [ 'foo', 'bar' ],
'$top': 10,
'$skip': 42,
'$format': 'application/json'
}