bugfix: service_function_name option match mutli name.

This commit is contained in:
fumingwei
2024-07-12 15:23:31 +08:00
parent ffa9968fae
commit 02abffd358

View File

@@ -82,7 +82,7 @@ class ServiceFunctionConfigLoader:
return [
{"name": item[self.SF_NAME_KEY], "id": int(item[self.DEVICE_ID_KEY])}
for item in self._configs[self.TABLE_NAME]
if re.match(name_pattern, item[self.SF_NAME_KEY])
if re.fullmatch(name_pattern, item[self.SF_NAME_KEY])
]
@property