Skip to content

Commit 54bc08d

Browse files
ci: Trim trailing newlines in _Category_
1 parent 2749adc commit 54bc08d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/add_project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def build_transformers(project_yaml: str) -> dict[str, Transformer]:
5353
"Name": lambda v: {"name": v.strip()},
5454
"URL": url_to_id,
5555
"Category": lambda v: {
56-
"category": next(c["category"] for c in categories if c["title"] == v)
56+
"category": next(
57+
c["category"] for c in categories if c["title"] == v.strip()
58+
)
5759
},
5860
}
5961

0 commit comments

Comments
 (0)