terminal: Re-add sanitizing trailing periods in URL detection (#38569)

I accidentally regressed this when bumping alacritty in
https://github.com/zed-industries/zed/pull/38505

cc @davewa 

Release Notes:

- N/A
839c216620Jakub Konka committed on 9/20/2025, 8:10:47 PM· committed by GitHubparent18df6a8
1 file changedLine totals unavailable