Platform independent path validation
All checks were successful
/ Misc Linters (push) Successful in 21s
/ Build App (push) Successful in 51s

This commit is contained in:
Valentin Brandl 2024-08-17 15:00:54 +02:00
parent 6615e2788a
commit 10d6be5f82
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -17,4 +17,8 @@ describe('safe path', () => {
it('accept happy path', () => {
expect(safePath('./uplodas', 'foobar')).toBe(true);
});
it('accept names starting with `..`', () => {
expect(safePath('./uplodas', '..foobar')).toBe(true);
});
});