fix regexp for pragma experimental

pull/5370/head
Joseph Izang 6 months ago
parent 9251dd0818
commit 0ac3817f58
  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