mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update test extraction script to recognize license identifier.
This commit is contained in:
parent
0148525aee
commit
bcc4bbcad7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user