mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Allow hexadecimal ranges in IPv6 addresses, not only 0-9
This commit is contained in:
parent
cc4601258d
commit
2d420a9bb7
2 changed files with 9 additions and 1 deletions
|
@ -31,6 +31,13 @@ numeric_range = r'''
|
|||
\]
|
||||
'''
|
||||
|
||||
hexadecimal_range = r'''
|
||||
\[
|
||||
(?:[0-9a-f]+:[0-9a-f]+) # hexadecimal begin:end
|
||||
(?::[0-9]+)? # numeric :step (optional)
|
||||
\]
|
||||
'''
|
||||
|
||||
alphanumeric_range = r'''
|
||||
\[
|
||||
(?:
|
||||
|
@ -50,7 +57,7 @@ ipv6_component = r'''
|
|||
[0-9a-f]{{1,4}}| # 0..ffff
|
||||
{range} # or a numeric range
|
||||
)
|
||||
'''.format(range=numeric_range)
|
||||
'''.format(range=hexadecimal_range)
|
||||
|
||||
ipv4_component = r'''
|
||||
(?:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue