The extension returned by the splitext contains the dot (#82803)

Fixed examples for splitext filter plugin
pull/83080/head
Benoît Geeraerts 6 months ago committed by GitHub
parent 153c979662
commit 454dd9e91d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,14 +14,14 @@ DOCUMENTATION:
EXAMPLES: |
# gobble => [ '/etc/make', 'conf' ]
# gobble => [ '/etc/make', '.conf' ]
gobble: "{{ '/etc/make.conf' | splitext }}"
# file_n_ext => [ 'ansible', 'cfg' ]
# file_n_ext => [ 'ansible', '.cfg' ]
file_n_ext: "{{ 'ansible.cfg' | splitext }}"
# hoax => ['/etc/hoasdf', '']
hoax: '{{ "/etc//hoasdf/" | splitext }}'
# hoax => [ '/etc/hoasdf', '' ]
hoax: "{{ '/etc/hoasdf' | splitext }}"
RETURN:
_value:

Loading…
Cancel
Save