aboutsummaryrefslogtreecommitdiffstats
path: root/test/cmdlineTests.sh
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-18 00:38:01 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 02:03:24 +0800
commitc9f468b7172157752df64c4ff3d7bfab01650a65 (patch)
treea2a5ee7175c184f6af588df5abf2f54847c52a83 /test/cmdlineTests.sh
parent321ab08102d5d238bc594e357b94bef2207cf7d2 (diff)
downloaddexon-solidity-c9f468b7172157752df64c4ff3d7bfab01650a65.tar.gz
dexon-solidity-c9f468b7172157752df64c4ff3d7bfab01650a65.tar.zst
dexon-solidity-c9f468b7172157752df64c4ff3d7bfab01650a65.zip
Better regex for finding version pragmas and replace it with >=0.0
There is a bug which stops ^0 from working.
Diffstat (limited to 'test/cmdlineTests.sh')
-rwxr-xr-xtest/cmdlineTests.sh2
1 files changed, 1 insertions, 1 deletions
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