support masks of type */something
Massimo Melina committed
Apr 19, 2023 at 16:38 UTC
3ff3b0f28232aa199343376507430a1284fd1a33
1 file changed
+2
src/vfs.ts
+2
@@ -288,6 +288,8 @@ function inheritMasks(item: VfsNode, parent: VfsNode, virtualBasename:string) {
288
const withoutNeg = neg ? k.slice(1) : k
289
if (withoutNeg.startsWith('**'))
290
o[k] = v
291
+ else if (withoutNeg.startsWith('*/'))
292
+ o[neg + withoutNeg.slice(2)] = v
293
else if (withoutNeg.startsWith(virtualBasename + '/'))
294
o[neg + withoutNeg.slice(virtualBasename.length + 1)] = v
295
}