From eeee79c787b5d2f7fbcb9af95ecea01c5a96da97 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 4 Jun 2020 15:27:48 -0400 Subject: [PATCH] more resilliant cmd.py oerisAdapter parsing --- lib/adapter/cmd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/adapter/cmd.py b/lib/adapter/cmd.py index 5d2ffa6..1654b74 100644 --- a/lib/adapter/cmd.py +++ b/lib/adapter/cmd.py @@ -130,9 +130,10 @@ class AdapterOeis(CommandAdapter): cmd[0] = _get_abspath(cmd[0]) # cut oeis/ off - # Space delimiter for args to oeis.sh + # Replace all (non numeric and non '-')'s with Spaces to delimit args to oeis.sh if topic.startswith("oeis/"): - topic = topic[5:].replace('+',' ') + topic = topic[5:] + topic = re.sub('[^0-9-]', ' ', topic) return cmd + [topic]