diff configmix/config.py @ 708:e692216f8756

Allow also "," characters to act as a separator within a filter-chain. The first filter is introduced by a "|", optional other ones may be introduced by a "|" or a ",".
author Franz Glasner <f.glasner@feldmann-mg.com>
date Tue, 15 Aug 2023 11:14:51 +0200
parents 10fbc23b4dba
children 6557cf9ecea5
line wrap: on
line diff
--- a/configmix/config.py	Tue Aug 15 10:41:22 2023 +0200
+++ b/configmix/config.py	Tue Aug 15 11:14:51 2023 +0200
@@ -451,7 +451,10 @@
         filters = filters.strip()
         if filters:
             if direction == 1:
-                return (name, filters.split(_FILTER_SEPARATOR))
+                if _FILTER_SEPARATOR_2 in filters:
+                    return (name, filters.split(_FILTER_SEPARATOR_2))
+                else:
+                    return (name, filters.split(_FILTER_SEPARATOR))
             else:
                 return (name, filters.split(_FILTER_SEPARATOR_2))
         else: