Merge pull request #1503 from pypeclub/bugfix/3.0_existing_subsets_hints

Existing subsets hints in creator
This commit is contained in:
Milan Kolar 2021-05-12 16:32:52 +02:00 committed by GitHub
commit fd482d3bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,9 +255,9 @@ class FamilyWidget(QtWidgets.QWidget):
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: