Quoting variable

This suggestion is brought to you by neema80 - thank you!

This closes #48.
This commit is contained in:
Tyler Akins 2021-11-25 15:36:47 -06:00
parent c86fd9a89b
commit 3aa5c462f8
No known key found for this signature in database
GPG Key ID: 8F3B8C432F4393BD

2
mo
View File

@ -302,7 +302,7 @@ moFindEndTag() {
moFindString() { moFindString() {
local pos string local pos string
string=${2%%$3*} string=${2%%"$3"*}
[[ "$string" == "$2" ]] && pos=-1 || pos=${#string} [[ "$string" == "$2" ]] && pos=-1 || pos=${#string}
local "$1" && moIndirect "$1" "$pos" local "$1" && moIndirect "$1" "$pos"
} }