Skip to content

Commit e629872

Browse files
committed
FIX: exists(null, ...) == 0
1 parent bf520bf commit e629872

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bids-validator/src/schema/expressionLanguage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
function exists(list: string[], rule: string = 'dataset'): number {
2+
if (list == null) {
3+
return 0
4+
}
5+
26
const prefix: string[] = []
37

48
// Stimuli and subject-relative paths get prefixes

0 commit comments

Comments
 (0)