diff options
| author | Wenxuan <wenxuangm@gmail.com> | 2018-04-14 10:27:58 +0800 | 
|---|---|---|
| committer | Wenxuan <wenxuangm@gmail.com> | 2018-04-14 10:34:20 +0800 | 
| commit | 6121243ca3439e89c1c6adc66dd09a1ea7383ad4 (patch) | |
| tree | 288e3f553a82792ef582045c93e6a6765ea2547a | |
| parent | 714545a84a6708ce47e78a01ce8f659f7acbe7fd (diff) | |
| download | fork-tmux-fzf-url-6121243ca3439e89c1c6adc66dd09a1ea7383ad4.tar.gz fork-tmux-fzf-url-6121243ca3439e89c1c6adc66dd09a1ea7383ad4.tar.bz2 fork-tmux-fzf-url-6121243ca3439e89c1c6adc66dd09a1ea7383ad4.zip | |
:bug: Revert wrong refactor
| -rwxr-xr-x | fzf-url.sh | 5 | 
1 files changed, 2 insertions, 3 deletions
| @@ -16,9 +16,8 @@ elif hash open &>/dev/null; then  fi  content="$(tmux capture-pane -J -p)" -IFS=' \n' -read -ra urls <<< "$(echo "$content" |grep -oE '\b(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]')" -read -ra ips  <<< "$(echo "$content" |grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(:[0-9].*)?' | sed 's/\(.*\)/http:\/\/\1/')" +urls=($(echo "$content" |grep -oE '\b(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]')) +ips=($(echo "$content" |grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(:[0-9].*)?' | sed 's/\(.*\)/http:\/\/\1/'))  merge() {      for item in "$@" ; do | 
