fix: also match newline at the end in $QUERY_TAG

This commit is contained in:
NRK
2021-05-01 23:23:27 +06:00
parent 16d300d1fe
commit 334c8986e0

4
sxbm
View File

@ -78,8 +78,8 @@ bm_list(){
case "$1" in
+*)
[ -z "$QUERY_TAG" ] &&
QUERY_TAG="/[[:blank:]]\\$1[[:space:]]/" ||
QUERY_TAG="${QUERY_TAG} $QUERY_STRICT /[[:blank:]]\\$1[[:space:]]/"
QUERY_TAG="/[[:blank:]]\\$1($| )/" ||
QUERY_TAG="${QUERY_TAG} $QUERY_STRICT /[[:blank:]]\\$1($| )/"
shift
;;
*)