Skip to content

Commit

Permalink
better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Oct 21, 2024
1 parent 68af135 commit 375751f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigbang/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
re_cache = {
"top_exp": re.compile(r"From .*\d\d\d\d\n"),
"msg_id": re.compile(r"<\S*@\S*>"),
"from_header_1" : re.compile(r"\"?([\w \-\=\?]*[\w\=])\"? <([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)>")
"from_header_1" : re.compile(r"\"?([\w\,\.\_\/ \-\=\?]*[\w\=\.\"])\"? <([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)>")
}

def split_references(refs):
Expand Down

0 comments on commit 375751f

Please sign in to comment.