From 8b4b770b3296874f17225d2298810d3735c2ae3c Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 11 May 2021 17:17:21 +0200 Subject: [PATCH] ignore case sensitivity on user input text replacement --- pype/tools/standalonepublish/widgets/widget_family.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pype/tools/standalonepublish/widgets/widget_family.py b/pype/tools/standalonepublish/widgets/widget_family.py index 077371030e8..93d1e4b1bbb 100644 --- a/pype/tools/standalonepublish/widgets/widget_family.py +++ b/pype/tools/standalonepublish/widgets/widget_family.py @@ -254,9 +254,9 @@ def _on_data_changed(self): defaults = list(plugin.defaults) # Replace - compare_regex = re.compile( - subset_name.replace(user_input_text, "(.+)") - ) + compare_regex = re.compile(re.sub( + user_input_text, "(.+)", subset_name, flags=re.IGNORECASE + )) subset_hints = set() if user_input_text: for _name in existing_subset_names: