forked from crony/udict
Fix space
This commit is contained in:
parent
98d9ef5abc
commit
d9e72f756d
2
udict
2
udict
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
term="$@"
|
term="$@"
|
||||||
|
|
||||||
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g' )"
|
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g')"
|
||||||
|
|
||||||
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" |
|
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" |
|
||||||
jq -r '.list[0] | .word, .definition' |
|
jq -r '.list[0] | .word, .definition' |
|
||||||
|
Loading…
Reference in New Issue
Block a user