Skip to content
Snippets Groups Projects
Commit 40f0454c authored by rswindell's avatar rswindell
Browse files

Update podcast message body parsing regexp to be more lenient about location of

URL.(more lines may follow).
parent d018c1e1
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ function podcast_get_info(base, hdr)
if (body == null)
return;
body = word_wrap(body, 65535, 79, false).replace(/\r/g, '');
m = body.match(/^[\r\n\s]*([\x00-\xff]+?)[\r\n\s]+(https?:\/\/[^\r\n\s]+)[\r\n\s]*$/);
m = body.match(/^[\r\n\s]*([\x00-\xff]+?)[\r\n\s]+(https?:\/\/[^\r\n\s]+)[\r\n\s]/);
if (m==null)
return;
ret.title = hdr.subject;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment