mirror of
https://github.com/charliermarsh/ruff
synced 2025-10-05 15:42:51 +02:00
[ty
] Fix playground crashes when accessing vendored files with leading slashes (#20661)
This commit is contained in:
@@ -100,6 +100,10 @@ export default function Playground() {
|
||||
setError("File names cannot start with '/'.");
|
||||
return;
|
||||
}
|
||||
if (newName.startsWith("vendored:")) {
|
||||
setError("File names cannot start with 'vendored:'.");
|
||||
return;
|
||||
}
|
||||
|
||||
const handle = files.handles[file];
|
||||
let newHandle: FileHandle | null = null;
|
||||
|
Reference in New Issue
Block a user