Skip to content

Commit 2f5cf5c

Browse files
committed
fix(cli): trim project_name whitespace, closes #308
1 parent a85e88d commit 2f5cf5c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.changes/project-name-trailing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix crashed caused by whitespace in "Project name" by trimming it.

packages/cli/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ where
6969
.default("tauri-app".into())
7070
.interact_text()
7171
.unwrap()
72+
.trim()
73+
.to_string()
7274
}
7375
});
7476

@@ -93,6 +95,7 @@ where
9395
}
9496
})
9597
.interact_text()?
98+
.trim().to_string()
9699
}
97100
};
98101

0 commit comments

Comments
 (0)