mvdan / xurls

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

cmd/xurls: -fix eats input when URLs get longer #48

Closed mvdan closed 2 years ago

mvdan commented 3 years ago
$ echo '[logged](https://freenode.logbot.info/foot-terminal) channel' | xurls -fix
[logged](https://freenode.logbot.info/foot-terminal/20210513/20210513

The expected output would be:

[logged](https://freenode.logbot.info/foot-terminal/20210513/20210513) channel