Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix URI template operators 'prefix', 'suffix' and 'list' to return th…
…e empty string for undefined variables. As per draft 3 of the URI template spec, made the the 'prefix', 'suffix' and 'list' to return the empty string for undefined variables. Previously, 'prefix' and 'suffix' returned the arg regardless and 'list' raised an exception. Added tests. Ideally the next draft of the spec would include examples equivalent to these.
- Loading branch information
Michael Burrows
authored and
Michael Burrows
committed
Apr 10, 2009
1 parent
178bf50
commit 429e214
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters