Modify path before checking if path exists

pull/5370/head
ioedeveloper 1 year ago committed by Aniket
parent 113323a19a
commit 2d95fdb3ca
  1. 2
      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)

Loading…
Cancel
Save