Punctuation can make links non-functional in footprint description

Description

KiCad generates broken links from URLs in the footprint description/documentation if the URL is followed by a punctuation mark (e.g. comma). There are many footprints with this issue.

While commas can technically be part of a URL, they are unusual and it is even more unlikely that a URL ends with one. For this reason, I think it may be better to ignore punctuation marks at the end of URLs during link generation than correcting footprints individually and trying to rein in what may feel like a natural way of writing the description for contributors. Other software also ignore those punctuation marks when generating links from URLs in free-form text (e.g. Gitlab's own online IDE).

One example: image

The clickable link points to: http://www.4uconnector.com/online/object/4udrawing/19963.pdf,

While the actual working URL is: http://www.4uconnector.com/online/object/4udrawing/19963.pdf

Steps to reproduce

  1. Open the PCB editor
  2. Go to Place --> Add Footprint
  3. Fin footprint TerminalBlock_4Ucon_1x02_p3.50mm_Horizontal
  4. In the description and documentation section, notice that the clickable link that ends with a comma is not functional
  5. Notice that the link works if you remove the comma

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 8.0.2, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.3.0
	FontConfig 2.14.2
	libcurl/8.5.0-DEV Schannel zlib/1.3

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Apr 27 2024 23:05:17
	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.5.0-DEV
	ngspice: 42
	Compiler: Visual C++ 1936 without C++ ABI
Edited by guiweber