diff --git a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts index cf57e7cf2b..5bc151c9b3 100644 --- a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts +++ b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts @@ -145,7 +145,7 @@ export class CompilerImports extends Plugin { } else { const localhostProvider = await this.call('fileManager', 'getProviderByName', 'localhost') if (localhostProvider.isConnected()) { - var splitted = /([^/]+)\/(.*)$/g.exec(url) + const splitted = /([^/]+)\/(.*)$/g.exec(url) const possiblePaths = ['localhost/installed_contracts/' + url] if (splitted) possiblePaths.push('localhost/installed_contracts/' + splitted[1] + '/contracts/' + splitted[2])