mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 02:37:05 +00:00
Add plus and dollar sign to terminal paths (#8321)
After fix (file path is now clickable): <img width="1019" alt="Screenshot 2024-02-23 at 8 59 45 PM" src="https://github.com/zed-industries/zed/assets/63214891/cbdcb0f5-cd58-436b-9980-f657436f2bc0"> Before fix: <img width="936" alt="Screenshot 2024-02-23 at 9 15 25 PM" src="https://github.com/zed-industries/zed/assets/63214891/72d27155-a708-4b8d-a0b6-85d1e9031627"> Release Notes: - Fixed an issue with terminal paths not allowing links when the path included `+` or `$` symbols. ([#8256](https://github.com/zed-industries/zed/issues/#8256)).
This commit is contained in:
parent
d895388809
commit
d1b58601a1
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ impl TerminalBuilder {
|
|||
let _io_thread = event_loop.spawn(); // DANGER
|
||||
|
||||
let url_regex = RegexSearch::new(r#"(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file://|git://|ssh:|ftp://)[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>"\s{-}\^⟨⟩`]+"#).unwrap();
|
||||
let word_regex = RegexSearch::new(r#"[\w.\[\]:/@\-~]+"#).unwrap();
|
||||
let word_regex = RegexSearch::new(r#"[\$\+\w.\[\]:/@\-~]+"#).unwrap();
|
||||
|
||||
let terminal = Terminal {
|
||||
task,
|
||||
|
|
Loading…
Reference in a new issue