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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user