mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix a typo in docs
This commit is contained in:
parent
366a9d861f
commit
22f3898412
1 changed files with 10 additions and 10 deletions
|
@ -610,34 +610,34 @@ URL Split Filter
|
||||||
|
|
||||||
The ``urlsplit`` filter extracts the fragment, hostname, netloc, password, path, port, query, scheme, and username from an URL. With no arguments, returns a dictionary of all the fields::
|
The ``urlsplit`` filter extracts the fragment, hostname, netloc, password, path, port, query, scheme, and username from an URL. With no arguments, returns a dictionary of all the fields::
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('hostname') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('hostname') }}
|
||||||
# => 'www.acme.com'
|
# => 'www.acme.com'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('netloc') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('netloc') }}
|
||||||
# => 'user:password@www.acme.com:9000'
|
# => 'user:password@www.acme.com:9000'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('username') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('username') }}
|
||||||
# => 'user'
|
# => 'user'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('password') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('password') }}
|
||||||
# => 'password'
|
# => 'password'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('path') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('path') }}
|
||||||
# => '/dir/index.html'
|
# => '/dir/index.html'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('port') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('port') }}
|
||||||
# => '9000'
|
# => '9000'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('scheme') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('scheme') }}
|
||||||
# => 'http'
|
# => 'http'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('query') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('query') }}
|
||||||
# => 'query=term'
|
# => 'query=term'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit('fragment') }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit('fragment') }}
|
||||||
# => 'fragment'
|
# => 'fragment'
|
||||||
|
|
||||||
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#frament" | urlsplit }}
|
{{ "http://user:password@www.acme.com:9000/dir/index.html?query=term#fragment" | urlsplit }}
|
||||||
# =>
|
# =>
|
||||||
# {
|
# {
|
||||||
# "fragment": "fragment",
|
# "fragment": "fragment",
|
||||||
|
|
Loading…
Reference in a new issue