File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ 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:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*"
18
+ tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${url_search} " " (https?://|git@|git://|ssh://|ftp://|file:///)[\x22\x27 [:alnum:]?=%/_.:,;~@!#$&()*+-]*"
19
19
fi
20
20
if stored_search_not_defined " $file_search " ; then
21
- tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${file_search} " " (^|^\.| [[:space:]]|[[:space:]] \.|[[:space:]] \.\.|^\.\.) [[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
21
+ tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${file_search} " " (^|(?<= [[:space:]]))( \.|\.\.)? [[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
22
22
fi
23
23
if stored_search_not_defined " $digit_search " ; then
24
24
tmux set-option -g " ${COPYCAT_VAR_PREFIX} _${digit_search} " " [[:digit:]]+"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ reverse_and_create_copycat_file() {
17
17
local file=$1
18
18
local copycat_file=$2
19
19
local grep_pattern=$3
20
- (tac 2> /dev/null || tail -r) < " $file " | grep -oniE " $grep_pattern " > " $copycat_file "
20
+ (tac 2> /dev/null || tail -r) < " $file " | grep -oniP " $grep_pattern " > " $copycat_file "
21
21
}
22
22
23
23
delete_old_files () {
You can’t perform that action at this time.
0 commit comments