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