Skip to content

Commit

Permalink
Escape Quotations (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
camila314 committed Jan 22, 2025
1 parent 5c81dbe commit 39a2e40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ pub fn build_template(location: Option<PathBuf>) {

let mod_id = format!(
"{}.{}",
final_developer.to_lowercase().replace(' ', "_"),
final_name.to_lowercase().replace(' ', "_")
final_developer.to_lowercase().replace(' ', "_").replace("\"", ""),
final_name.to_lowercase().replace(' ', "_").replace("\"", "")
);

let action = ask_confirm("Do you want to add the cross-platform Github action?", true);
Expand All @@ -262,11 +262,11 @@ pub fn build_template(location: Option<PathBuf>) {
create_template(CreateTemplate {
template,
project_location: final_location,
name: final_name,
name: final_name.replace("\"", "\\\""),
version: final_version,
id: mod_id,
developer: final_developer,
description: final_description,
developer: final_developer.replace("\"", "\\\""),
description: final_description.replace("\"", "\\\""),
strip,
action,
});
Expand Down

0 comments on commit 39a2e40

Please sign in to comment.