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

Fixed examples for splitext filter plugin
pull/83080/head
Benoît Geeraerts 2 years 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: | EXAMPLES: |
# gobble => [ '/etc/make', 'conf' ] # gobble => [ '/etc/make', '.conf' ]
gobble: "{{ '/etc/make.conf' | splitext }}" gobble: "{{ '/etc/make.conf' | splitext }}"
# file_n_ext => [ 'ansible', 'cfg' ] # file_n_ext => [ 'ansible', '.cfg' ]
file_n_ext: "{{ 'ansible.cfg' | splitext }}" file_n_ext: "{{ 'ansible.cfg' | splitext }}"
# hoax => ['/etc/hoasdf', ''] # hoax => [ '/etc/hoasdf', '' ]
hoax: '{{ "/etc//hoasdf/" | splitext }}' hoax: "{{ '/etc/hoasdf' | splitext }}"
RETURN: RETURN:
_value: _value:

Loading…
Cancel
Save