diff --git a/noir-projects/noir-contracts/scripts/flamegraph.sh b/noir-projects/noir-contracts/scripts/flamegraph.sh index 8db540142e6..7db97d0e384 100755 --- a/noir-projects/noir-contracts/scripts/flamegraph.sh +++ b/noir-projects/noir-contracts/scripts/flamegraph.sh @@ -50,7 +50,7 @@ function sed_wrapper() { } # convert contract name to following format: token_bridge_contract-TokenBridge.json -ARTIFACT=$(echo "$CONTRACT" | sed_wrapper -r 's/^([A-Z])/\L\1/; s/([a-z0-9])([A-Z])/\1_\L\2/g') +ARTIFACT=$(echo "$CONTRACT" | sed_wrapper -r 's/^([A-Z]+)/\L\1/; s/([a-z0-9])([A-Z])/\1_\L\2/g') ARTIFACT=$(echo "$ARTIFACT" | tr '[:upper:]' '[:lower:]') ARTIFACT_NAME="${ARTIFACT}_contract-${CONTRACT}"