Update test extraction script to recognize license identifier.

This commit is contained in:
chriseth
2020-05-13 22:16:34 +02:00
parent 0148525aee
commit bcc4bbcad7
+1 -1
View File
@@ -52,7 +52,7 @@ def extract_docs_cases(path):
if inside:
extractedLines[-1] += l + '\n'
codeStart = "(pragma solidity|contract.*{|library.*{|interface.*{)"
codeStart = "(// SPDX-License-Identifier:|pragma solidity|contract.*{|library.*{|interface.*{)"
# Filter all tests that do not contain Solidity or are intended incorrectly.
for lines in extractedLines: