Better regex for finding version pragmas and replace it with >=0.0

There is a bug which stops ^0 from working.
This commit is contained in:
Alex Beregszaszi
2018-09-25 19:03:24 +01:00
parent 321ab08102
commit c9f468b717
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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