1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-02 07:50:04 +03:00

new parsing was removing '-'. negative numbers now supported again

This commit is contained in:
Your Name 2020-06-11 05:34:24 -04:00
parent 8814488e26
commit ca9d5bc177

View File

@ -104,7 +104,7 @@ oeis() (
# Search unknown sequence
else
# Build URL
URL+="/search?q=signed%3A$(echo $@ | tr -sc '[:digit:]' ',')"
URL+="/search?q=signed%3A$(echo $@ | tr -sc '[:digit:]-' ',')"
curl $URL 2>/dev/null > $DOC
# Sequence IDs
grep -o '=id:.*&' $DOC \