diff --git a/mo b/mo index ba8e48d..c928d7c 100755 --- a/mo +++ b/mo @@ -302,7 +302,7 @@ moFindEndTag() { moFindString() { local pos string - string=${2%%$3*} + string=${2%%"$3"*} [[ "$string" == "$2" ]] && pos=-1 || pos=${#string} local "$1" && moIndirect "$1" "$pos" }