Skip to content

Commit

Permalink
feat: hyphen to underscore in default android identifier prompt (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetz authored Oct 14, 2024
1 parent be28a82 commit 5735c19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/app/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ impl Defaults {
.to_str()
.ok_or_else(|| DefaultsError::CurrentDirInvalidUtf8(cwd.clone()))?;
let name = name::transliterate(&dir_name.to_kebab_case());
let dot_name = name.as_ref().map(|n| format!(".{n}")).unwrap_or_default();
let dot_name = name
.as_ref()
.map(|n| format!(".{n}"))
.unwrap_or_default()
.replace("-", "_");
Ok(Self {
identifier: default_identifier(wrapper, &dot_name)
.ok()
Expand Down

0 comments on commit 5735c19

Please sign in to comment.