mvdan / xurls

Extract urls from text
BSD 3-Clause "New" or "Revised" License
1.19k stars 116 forks source link

Matches \r and \n as part of URL #72

Closed bf closed 1 year ago

bf commented 1 year ago

Example text file:

http://cs.anu.edu.au/~bdm/dilugim/moby.html\r\n\r\nEh, for the record, the man who

result: http://cs.anu.edu.au/~bdm/dilugim/moby.html\r\n\r\nEh

version 2.5.0

bf commented 1 year ago

Might be fixed if \r\n is considered as newline

bf commented 1 year ago

oh I'm an idiot - I should parse the json string before running it through xurls. sorry for this ticket!