File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ set_default_stored_searches() {
15
15
local ip_search=" $( get_tmux_option " $copycat_ip_search_option " " $default_ip_search_key " ) "
16
16
17
17
if stored_search_not_defined " $url_search " ; then
18
- tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${url_search} " " (https?://|git@|git://|ssh://|ftp://|file:///)[\x22\x27[:alnum:]?=%/_.:,;~@!#$&()*+-]*"
18
+ tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${url_search} " " (?<=\(|([\x22\x27]))(( https?://|git@|git://|ssh://|ftp://|file:///)[\x22\x27[:alnum:]?=%/_.:,;~@!#$&()*+-]*)(?=\)|\1)|(?2) "
19
19
fi
20
20
if stored_search_not_defined " $file_search " ; then
21
21
tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${file_search} " " (^|(?<=[[:space:]]))(\.|\.\.)?[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
You can’t perform that action at this time.
0 commit comments