Skip to content

Commit fce8dbe

Browse files
committed
fix: fileNameArb will not produce restricted strings
1 parent 5a6b3a7 commit fce8dbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/fastCheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const scheduleCall = <T>(s: fc.Scheduler, f: () => Promise<T>) =>
3232
const fileNameArb = () =>
3333
fc
3434
.stringMatching(/^[^<>.:"/\\|?* ]{2,10}$/)
35-
.filter((name) => name.trim().length > 0) // Filter out all-space values
35+
.filter((name) => name.trim().length > 0 && name !== '__proto__')
3636
.noShrink();
3737

3838
/**

0 commit comments

Comments
 (0)