mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
Quoting variable
This suggestion is brought to you by neema80 - thank you! This closes #48.
This commit is contained in:
parent
c86fd9a89b
commit
3aa5c462f8
2
mo
2
mo
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user