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

oeis: replace groups of non-alpha with spaces (#187)

This commit is contained in:
Igor Chubin
2020-06-11 13:17:16 +00:00
parent 1a29870d92
commit b24b45ce7c
+1 -1
View File
@@ -133,7 +133,7 @@ class AdapterOeis(CommandAdapter):
# 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]