Skip to content

Commit

Permalink
fix(cli): trim project_name whitespace, closes #308
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jan 21, 2023
1 parent a85e88d commit 2f5cf5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/project-name-trailing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-tauri-app": "patch"
"create-tauri-app-js": "patch"
---

Fix crashed caused by whitespace in "Project name" by trimming it.
3 changes: 3 additions & 0 deletions packages/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ where
.default("tauri-app".into())
.interact_text()
.unwrap()
.trim()
.to_string()
}
});

Expand All @@ -93,6 +95,7 @@ where
}
})
.interact_text()?
.trim().to_string()
}
};

Expand Down

0 comments on commit 2f5cf5c

Please sign in to comment.