From: Alex S. <al...@em...> - 2003-01-17 03:25:14
|
Max Froumentin <mf...@w3...> writes: > 1. While typing "http://www.w3.org" (without the quotes) in a channel > buffer highlights the full URL correctly and send the full URL to the > browser when clicked on, "http://www.w3.org|" will wrongly send | to > the browser. > > Oddly, removing both instances of "|" in erc-button-url-regexp doesn't > work. I'd found the same bug in gnus and that had worked. Yes, I assume that is because we are using a erc-button-syntax-table while matching buttons -- because when we are looking at nicks, we want to consider all these weird characters as "word" characters -- but when we are looking at punctuation following an URL, they should no longer be "word" constituents. Currently we use ("<URL: *\\([^<> ]+\\) *>" 0 t browse-url 1) for URLs. Perhaps we should use goto-address-url-regexp instead. Its value is: "\\<\\(https?://\\|ftp://\\|gopher://\\|telnet://\\|wais://\\|file:/\\|s?news:\\|mailto:\\)[^] \n \"'()<>[^`{}]*[^] \n \"'()<>[^`{}.,;]+" Alex. |