fix(init): don't prepend the default filetype with a .

This commit is contained in:
Amaan Qureshi 2025-01-23 00:30:47 -05:00
parent a70b2fee4b
commit 4ab78ae00d

View file

@ -577,7 +577,7 @@ impl Init {
let file_types = |name: &str| {
Input::<String>::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();