The extension returned by the splitext contains the dot; fixed the last example and aligned its syntax to the others

pull/82803/head
Benoît Geeraerts 2 months ago committed by Benoît Geeraerts
parent f1ded0f417
commit 427f0ad859
No known key found for this signature in database
GPG Key ID: B305A7F973B66C84

@ -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