From 4ab78ae00d92d5934e4fb63faba936aa9de5ec08 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 23 Jan 2025 00:30:47 -0500 Subject: [PATCH] fix(init): don't prepend the default filetype with a `.` --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 21e461cc..cb313fdc 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -577,7 +577,7 @@ impl Init { let file_types = |name: &str| { Input::::with_theme(&ColorfulTheme::default()) .with_prompt("File types (space-separated)") - .default(format!(".{name}")) + .default(name.to_string()) .interact_text() .map(|ft| { let mut set = HashSet::new();