1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

cmd.py: oeisAdapter argparser no longer removes ':' this enables :list

This commit is contained in:
Your Name
2020-06-15 14:49:58 -04:00
parent ad0fcd6297
commit 47176f1ad2
+2 -2
View File
@@ -130,10 +130,10 @@ class AdapterOeis(CommandAdapter):
cmd[0] = _get_abspath(cmd[0])
# cut oeis/ off
# Replace all non (alphanumeric, '-') chars with Spaces to delimit args to oeis.sh
# Replace all non (alphanumeric, '-', ':') chars with Spaces to delimit args to oeis.sh
if topic.startswith("oeis/"):
topic = topic[5:]
topic = re.sub('[^a-zA-Z0-9-]+', ' ', topic)
topic = re.sub('[^a-zA-Z0-9-:]+', ' ', topic)
return cmd + [topic]