mirror of
https://github.com/Ragora/TSScraper.git
synced 2026-04-24 14:45:02 +00:00
Adjust the key,value regex pattern to better pickup datablock property values
This commit is contained in:
parent
71c92c1a43
commit
354831b5ae
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ def scrape_file(input):
|
|||
"""
|
||||
filepath, parameter_split, combined_pattern = input
|
||||
|
||||
key_value_pattern = re.compile("(?<!.)\s*[A-z]+\s*=\s*(\S+);")
|
||||
key_value_pattern = re.compile("(?<!.)\s*[A-z]+\s*=.+;")
|
||||
|
||||
global_usages = re.compile("\{.*\$[A-z]+(::([A-z]+))*?.*\}")
|
||||
global_pattern = re.compile("(?<!.)\s*$[A-z]+(::([A-z]+))*?")
|
||||
|
|
@ -788,7 +788,7 @@ class TSScraper(object):
|
|||
parent_datablock = datablock_list[parent][0]
|
||||
|
||||
# Is it declared?
|
||||
if (check not in parent_datablock.properties):
|
||||
if (check not in parent_datablock.properties.keys()):
|
||||
continue
|
||||
|
||||
found_check = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue