fix regexp for pragma experimental

pull/4814/head
Joseph Izang 6 months ago
parent 2813fad8b2
commit 4ed97720af
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/logic/flattenerUtilities.ts

@ -2,7 +2,7 @@ import type { CompilationSource, AstNode } from '@remix-project/remix-solidity'
const IMPORT_SOLIDITY_REGEX = /^\s*import(\s+).*$/gm
const SPDX_SOLIDITY_REGEX = /^\s*\/\/ SPDX-License-Identifier:.*$/gm
const PRAGMA_SOLIDITY_REGEX = /^pragma\s+.*$/gm
const PRAGMA_SOLIDITY_REGEX = /^pragma experimental\s+.*$/gm
type Visited = { [key: string]: number }
export function getDependencyGraph(ast: { [name: string]: CompilationSource }, target: string, remappings: string[], order: string[]) {

Loading…
Cancel
Save