Skip to content

Commit

Permalink
Make metadata RE reluctant (stop on first =)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenna Peterson committed Jun 16, 2012
1 parent a99a4c4 commit 139dc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcf/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(self):
Type=(?P<type>.+),
Description="(?P<desc>.*)"
>''', re.VERBOSE)
self.meta_pattern = re.compile(r'''##(?P<key>.+)=(?P<val>.+)''')
self.meta_pattern = re.compile(r'''##(?P<key>.+?)=(?P<val>.+)''')

def vcf_field_count(self, num_str):
if num_str == '.':
Expand Down

0 comments on commit 139dc6c

Please sign in to comment.