diff options
author | John Dennis <jdennis@redhat.com> | 2007-11-27 22:52:11 -0500 |
---|---|---|
committer | John Dennis <jdennis@redhat.com> | 2007-11-27 22:52:11 -0500 |
commit | c939c5d289daaf4c855caa2a6816e7eeba7e2661 (patch) | |
tree | 05dd956367192d608d422625e6fdf6ad75c5cbdc /ipa-python | |
parent | f73bd4e27ef6d048b47ebe5ba2b058ba704738dd (diff) | |
download | freeipa-c939c5d289daaf4c855caa2a6816e7eeba7e2661.tar.gz freeipa-c939c5d289daaf4c855caa2a6816e7eeba7e2661.tar.xz freeipa-c939c5d289daaf4c855caa2a6816e7eeba7e2661.zip |
fix regular expression used in parse_key_value_pairs()
Diffstat (limited to 'ipa-python')
-rw-r--r-- | ipa-python/ipautil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index 8839e6cf2..9584f9289 100644 --- a/ipa-python/ipautil.py +++ b/ipa-python/ipautil.py @@ -378,7 +378,7 @@ def format_list(items, quote=None, page_width=80): col += 1 return '\n'.join(rows) -key_value_re = re.compile("([^\s=]+)\s*=\s*((\S+)|(?P<quote>['\\\"])((?P=quote)|(.*?[^\\\])(?P=quote)))") +key_value_re = re.compile("(\w+)\s*=\s*(([^\s'\\\"]+)|(?P<quote>['\\\"])((?P=quote)|(.*?[^\\\])(?P=quote)))") def parse_key_value_pairs(input): ''' Given a string composed of key=value pairs parse it and return a dict of the key/value pairs. Keys must be a word, a key must be followed |