Add tags to regex_patterns
This commit is contained in:
parent
84e5f806c9
commit
c1a43d26e6
1228 changed files with 3478 additions and 1228 deletions
|
|
@ -49,6 +49,7 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
|
|||
with open(new_path, "r+", encoding="utf-8") as f:
|
||||
yml_data = yaml.safe_load(f)
|
||||
yml_data["name"] = get_safe_name(name)
|
||||
yml_data["tags"].append(service.capitalize())
|
||||
f.seek(0)
|
||||
yaml.dump(yml_data, f, sort_keys=False, allow_unicode=True)
|
||||
f.truncate()
|
||||
|
|
@ -61,7 +62,7 @@ def collect_regex_pattern(service, file_name, input_json, output_dir):
|
|||
"name": get_regex_pattern_name(service, name),
|
||||
"pattern": pattern,
|
||||
"description": "",
|
||||
"tags": [],
|
||||
"tags": [service.capitalize()],
|
||||
"tests": [],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue