s4

changeset 656:ad6b57bd6a20

Remove newlines from patterns
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 11 May 2020 18:09:41 +0900
parents a049d3cb0389
children 5b5c64023cf5
files s4-funcs.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Mon May 11 13:45:48 2020 +0900
     1.2 +++ b/s4-funcs.sh	Mon May 11 18:09:41 2020 +0900
     1.3 @@ -2204,7 +2204,8 @@
     1.4      convert -geometry $thumbxy $imgdir/$deficon $dir/$deficon
     1.5    fi
     1.6    if [ -n "$2" ]; then
     1.7 -    cond1="(nick like '%$2%' or b.name like '%$2%')"
     1.8 +    ptn=`echo $2 | tr -d '\n'`
     1.9 +    cond1="(nick like '%${ptn}%' or b.name like '%${ptn}%')"
    1.10      kwd=$2
    1.11    fi
    1.12    tag=`getpar tag` tag2=`getpar tag2`