mirror of
https://github.com/Ragora/TSScraper.git
synced 2026-07-14 16:14:40 +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
|
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_usages = re.compile("\{.*\$[A-z]+(::([A-z]+))*?.*\}")
|
||||||
global_pattern = re.compile("(?<!.)\s*$[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]
|
parent_datablock = datablock_list[parent][0]
|
||||||
|
|
||||||
# Is it declared?
|
# Is it declared?
|
||||||
if (check not in parent_datablock.properties):
|
if (check not in parent_datablock.properties.keys()):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
found_check = True
|
found_check = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue