Modify path before checking if path exists

pull/4430/head^2
ioedeveloper 1 year ago committed by Aniket
parent a04ad5f389
commit c5ff39be19
  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