Add support for *,the filenames
This commit is contained in:
parent
9b5e2947ed
commit
d904e5b7a5
10
wyrics
10
wyrics
|
@ -22,13 +22,15 @@ function search {
|
||||||
|
|
||||||
# sanitize search strings
|
# sanitize search strings
|
||||||
function sanitize {
|
function sanitize {
|
||||||
local str="$(echo "$1" | sed 's/ /%2A/g')"
|
local str="$1"
|
||||||
|
|
||||||
if echo "$str" | grep ',the\.' >/dev/null; then
|
if echo "$str" | grep ',the' >/dev/null; then
|
||||||
str="the%2A${str}"
|
str="the%2A$(echo "$str" | sed 's%,the%%')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$str"
|
echo "$str" \
|
||||||
|
| sed 's/ /%2A/g' \
|
||||||
|
| sed 's/_/%2A/g'
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
Ŝarĝante…
Reference in New Issue