diff --git a/lib/adapter/cmd.py b/lib/adapter/cmd.py index 7ecbdf30..be1df97f 100644 --- a/lib/adapter/cmd.py +++ b/lib/adapter/cmd.py @@ -133,7 +133,7 @@ def _get_command(self, topic, request_options=None): # 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]