Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 8, 2024
1 parent 96a1f5b commit 594cff4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ RADL 1.31
RADL 1.32

* Error parsing net_interface.0.additional_dns_names in json.

RADL 1.33

* Minor internal code changes.
2 changes: 1 addition & 1 deletion radl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@


__all__ = ['radl_parse', 'radl_json', 'radl']
__version__ = '1.3.2'
__version__ = '1.3.3'
4 changes: 2 additions & 2 deletions radl/radl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,8 +1480,8 @@ def parseOutPorts(outports):
res = []
ports = outports.split(',')
for port in ports:
expr = ("^((\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\/\d{1,2})-){0,1}((\d+)((:)\d+){0,1}((\/tcp|\/udp){0,1}))"
"((-)((\d+)((:)\d+){0,1}((\/tcp|\/udp){0,1}))){0,1}$")
expr = (r"^((\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\/\d{1,2})-){0,1}((\d+)((:)\d+){0,1}((\/tcp|\/udp){0,1}))"
r"((-)((\d+)((:)\d+){0,1}((\/tcp|\/udp){0,1}))){0,1}$")
match = re.search(expr, port)
if not match:
raise RADLParseException('Invalid outports format.')
Expand Down

0 comments on commit 594cff4

Please sign in to comment.