Skip to content

Commit

Permalink
per #1212, properly parse list values that contain square braces [] o…
Browse files Browse the repository at this point in the history
…r semi-colons ;
  • Loading branch information
georgemccabe committed Nov 12, 2021
1 parent 10f17e7 commit 19393eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metplus/util/met_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ def getlist(list_str, expand_begin_end_incr=True):
return []

# FIRST remove surrounding comma, and spaces, form the string.
list_str = list_str.strip().strip(',').strip()
list_str = list_str.strip(';[] ').strip().strip(',').strip()

# remove space around commas
list_str = re.sub(r'\s*,\s*', ',', list_str)
Expand Down

0 comments on commit 19393eb

Please sign in to comment.