fix: Case-insensitive constants search

main
Sofus Albert Høgsbro Rose 2024-04-09 10:43:28 +02:00
parent 56abb3fb46
commit 1d90f9ca7c
Signed by: so-rose
GPG Key ID: AD901CB0F3701434
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ class ScientificConstantNode(base.MaxwellSimNode):
self, self,
edit_text: str, edit_text: str,
): ):
return [name for name in constants.SCI_CONSTANTS if edit_text in name] return [
name
for name in constants.SCI_CONSTANTS
if edit_text.lower() in name.lower()
]
def on_update_sci_constant( def on_update_sci_constant(
self, self,