Skip to content

Commit

Permalink
Fix: categories should be lower case with a dash (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser authored Sep 11, 2023
1 parent fde5852 commit 144b3f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pyosmeta/parse_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,11 @@ def get_categories(

# Get checked categories for package
cat_list = issue_list[cat_index : cat_index + 10]
selected = [
item[0] for item in cat_list if re.search(r"- \[[xX]\] ", item[0])
]
cleaned = [re.sub(r"- \[[xX]\] ", "", item) for item in selected]
categories = [
re.sub(r"- \[[xX]\] ", "", item[0])
for item in cat_list
if re.search(r"- \[[xX]\] ", item[0])
re.sub(r"(\w+) (\w+)", r"\1-\2", item) for item in cleaned
]

return [item.lower().replace("[^1]", "") for item in categories]

0 comments on commit 144b3f3

Please sign in to comment.