Closes #33210 Release Notes: - Fixed an issue where a trailing single quote was included when opening a link from the terminal.
Part of #28238 This PR refactors `FindHyperlink` handling and associated code in `terminal.rs` into its own file for improved testability, and adds tests. Release Notes: - N/A