diff options
author | Magnus Hagander | 2018-11-20 20:29:22 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-11-20 20:29:22 +0000 |
commit | 3fce2e6520cc3df5bbc7a2fa876ca7788e63e57a (patch) | |
tree | 019cbb03ec3c03a711bb1eb8552a1dc83d1024e0 /loader/lib/parser.py | |
parent | 856863b0f36a5c423cad65c8d72c1891232f4e9d (diff) |
Remove spaces in messageids
They shouldn't be there in the first place. Sigh. But if they're there
just pretend they don't exist, so we get a working messageid.
Diffstat (limited to 'loader/lib/parser.py')
-rw-r--r-- | loader/lib/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/lib/parser.py b/loader/lib/parser.py index d0e5302..871cea7 100644 --- a/loader/lib/parser.py +++ b/loader/lib/parser.py @@ -343,7 +343,7 @@ class ArchivesParser(object): log.status("Could not parse messageid '%s', ignoring it" % messageid) return None raise IgnorableException("Could not parse message id '%s'" % messageid) - return m.groups(1)[0] + return m.groups(1)[0].replace(' ','') # _date_multi_re = re.compile(' \((\w+\s\w+(\s+\w+)*|)\)$') # Now using [^\s] instead of \w, to work with japanese chars |