We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ty
1 parent 56d630e commit eb34d12Copy full SHA for eb34d12
1 file changed
playground/ty/src/Playground.tsx
@@ -96,6 +96,11 @@ export default function Playground() {
96
file: FileId,
97
newName: string,
98
) => {
99
+ if (newName.startsWith("/")) {
100
+ setError("File names cannot start with '/'.");
101
+ return;
102
+ }
103
+
104
const handle = files.handles[file];
105
let newHandle: FileHandle | null = null;
106
if (handle == null) {
0 commit comments