Add support for *,the filenames

This commit is contained in:
Jaidyn Ann 2021-01-30 21:05:49 -06:00
parent 9b5e2947ed
commit d904e5b7a5

10
wyrics
View File

@ -22,13 +22,15 @@ function search {
# sanitize search strings
function sanitize {
local str="$(echo "$1" | sed 's/ /%2A/g')"
local str="$1"
if echo "$str" | grep ',the\.' >/dev/null; then
str="the%2A${str}"
if echo "$str" | grep ',the' >/dev/null; then
str="the%2A$(echo "$str" | sed 's%,the%%')"
fi
echo "$str"
echo "$str" \
| sed 's/ /%2A/g' \
| sed 's/_/%2A/g'
}
# --------------------------------------