diff --git a/modules/utils/sd_interface.py b/modules/utils/sd_interface.py index bb1fb5c..8e9bd70 100644 --- a/modules/utils/sd_interface.py +++ b/modules/utils/sd_interface.py @@ -86,7 +86,7 @@ def _run_and_cache_help(self): for option in self._OPTIONS: match = re.search( - fr"{re.escape(option)}.*?\[([^\]]+)\]", help_text, re.DOTALL + fr"^\s*{re.escape(option)}\s.*?\[([^\]]+)\]", help_text, re.MULTILINE ) if match: values_str = match.group(1).replace('\n', ' ')