Skip to content

Commit

Permalink
oeis: replace groups of non-alpha with spaces (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
chubin committed Jun 11, 2020
1 parent 1a29870 commit b24b45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapter/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit b24b45c

Please sign in to comment.