Skip to content

Commit b3e7774

Browse files
author
ldx
committed
Fix parsing of the buffer from save().
Output from extension->save() can contain quoted strings. This should fix #27.
1 parent b3e3edf commit b3e7774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iptc/ip4tc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class iptc(object):
235235
class IPTCModule(object):
236236
"""Superclass for Match and Target."""
237237
pattern = re.compile(
238-
'\s*(!)?\s*--([-\w]+)\s+(!)?\s*"?([^"]*?)"?(?=\s*(?:!?\s*--|$))')
238+
'\s*(!)?\s*--([-\w]+)\s+(!)?\s*("?[^"]*?"?)(?=\s*(?:!?\s*--|$))')
239239

240240
def __init__(self):
241241
self._name = None

0 commit comments

Comments
 (0)