From 598e5dfb114c85549a96e0094aff3afc0e152f9c Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 7 Jun 2020 17:27:09 +0000 Subject: [PATCH] minor fix (#208) --- lib/adapter/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adapter/cmd.py b/lib/adapter/cmd.py index 9d01e22..7680998 100644 --- a/lib/adapter/cmd.py +++ b/lib/adapter/cmd.py @@ -138,7 +138,7 @@ class AdapterOeis(CommandAdapter): return cmd + [topic] def is_found(self, topic): - return True + return True class AdapterChmod(CommandAdapter): """ @@ -158,7 +158,7 @@ class AdapterChmod(CommandAdapter): # remove all non (alphanumeric, '-') chars if topic.startswith("chmod/"): topic = topic[6:] - topic = re.sub('[^a-z^A-Z^0-9-]', '', topic) + topic = re.sub('[^a-zA-Z0-9-]', '', topic) return cmd + [topic]