control: retitle -1 url parsing of notes only works with one url per note
Hi,
On Montag, 15. September 2014, Salvatore Bonaccorso wrote:
> Activated that change (not closing the bug, as there is still one part
> to be addressed possibly).
pffft, I would have closed the bug ;-) Anyhow, this is the line which needs to
be fixed, if thats possible with regexes:
results=re.search("(.*)(?P<url>https?://[^\s]+)(.*)", line)
which is then interated through, with "for group in results.groups():"...
So the problem is because the regex above only matches one http(s)-URL, not
several occurances, resulting in more objects in results.groups().
Is such an regex possible?
cheers,
Holger
Attachment:
signature.asc
Description: This is a digitally signed message part.