aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorTommy Yu <tommy.yu@auckland.ac.nz>2019-07-11 22:27:22 +1200
committerTommy Yu <tommy.yu@auckland.ac.nz>2019-07-11 22:38:12 +1200
commitabb1308fa8b7c50eb79e9f07ee448a76c7449847 (patch)
tree8d7e81c3dcf0fecd39c4f00c8947ab49de23e90e /README.rst
parent21afcf2c35f21034124a230abebd1157cbee8265 (diff)
downloaduritemplates-abb1308fa8b7c50eb79e9f07ee448a76c7449847.tar.gz
Correct handling of empty/undef in list values
- Expansion of a list including `None` values, violating 3.2.1 as the undefined value is not ignored, e.g. >>> expand('/test{/x*}', x=['one', None, 'three']) '/test/one/None/three' - A list with empty string was ignored, violating 2.3 as this should not be tread as undefined, example: >>> expand('/test{/x}', x=[]) '/test' >>> expand('/test{/x}', x='') '/test/' >>> expand('/test{/x}', x=['']) '/test' # should be /test/ >>> expand('/test{/x}', x=['', '']) '/test/,' >>> expand('/test{/x*}', x=['', '']) '/test//' >>> expand('/test{/x*}', x=['']) '/test'
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions