1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02: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
+1 -1
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 \