I have a method like:
* Returns a parameter
* @url POST /parameter/$parameter
public function parameter($parameter = null)
My request is /parameter/12334556.pdf
From above method I get 12334556 and should be 12334556.pdf
jacwrights repository has a bug which causes this. Take a look to some of the forks which fixed it, but most of the forks now use the .extension to alter the output format. Since .pdf isn't supported this will not get you any relief here.
Perhaps we can add handing over extensions to the variables if they aren't supported output formats, but this will be confusing more than it helps IMO.
Isn't removing period afterwards the desired behaviour? @jacwright
In getPath method:
// remove trailing format definition, like /controller/action.json -> /controller/action
$path = preg_replace('/\.(\w+)$/i', '', $path);