From 2d95fdb3cac946310a3878d8fe2c033cb56eb7ac Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 21 Nov 2023 11:49:24 +0100 Subject: [PATCH] Modify path before checking if path exists --- apps/circuit-compiler/src/app/services/circomPluginClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/circuit-compiler/src/app/services/circomPluginClient.ts b/apps/circuit-compiler/src/app/services/circomPluginClient.ts index b4c3ecc9ad..278264d132 100644 --- a/apps/circuit-compiler/src/app/services/circomPluginClient.ts +++ b/apps/circuit-compiler/src/app/services/circomPluginClient.ts @@ -228,7 +228,7 @@ export class CircomPluginClient extends PluginClient { includes.map(async (include) => { // fix for endless recursive includes let dependencyContent = '' - let path = include + let path = include.replace(/(\.\.\/)+/g, '') // @ts-ignore const pathExists = await this.call('fileManager', 'exists', path)