From c9f468b7172157752df64c4ff3d7bfab01650a65 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 17 Sep 2018 17:38:01 +0100 Subject: Better regex for finding version pragmas and replace it with >=0.0 There is a bug which stops ^0 from working. --- test/cmdlineTests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cmdlineTests.sh') diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index e4218b6e..78e45429 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -178,7 +178,7 @@ do echo " - $dir" cd "$dir" # Replace version pragmas - find . -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [^;]+/pragma solidity ^0/' + find . -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/' compileFull -w *.sol */*.sol cd .. fi -- cgit