minor improvements

This commit is contained in:
rambros 2026-03-07 17:47:09 +05:30
parent d6630dd1c5
commit e5758a26d9
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View file

@ -25,6 +25,9 @@ wheels/
# Virtual Environment # Virtual Environment
venv/ venv/
ENV/ ENV/
# llm files
.idx/
reference/ reference/
# Configuration and Secrets # Configuration and Secrets

View file

@ -43,7 +43,7 @@ class NewConfigModal(ModalScreen[str]):
def _get_sanitized_name(self) -> str: def _get_sanitized_name(self) -> str:
raw = self.query_one("#new_config_input", Input).value.strip() raw = self.query_one("#new_config_input", Input).value.strip()
return re.sub(r"[^a-zA-Z0-9_-]+", "-", raw).strip("-") return re.sub(r"[^a-zA-Z0-9_-]+", "_", raw).strip("-")
def on_button_pressed(self, event: Button.Pressed) -> None: def on_button_pressed(self, event: Button.Pressed) -> None:
if event.button.id == "btn_create": if event.button.id == "btn_create":