Skip to content

Commit

Permalink
New RegEx for formatted flag-table
Browse files Browse the repository at this point in the history
Signed-off-by: simonmicro <[email protected]>
  • Loading branch information
simonmicro committed May 20, 2024
1 parent 2d804d9 commit 11c7fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/getWorkflowMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def get(info: GettableInfo):
elif info == GettableInfo.FLAGS:
with open('docs/firmware/osw_os.md') as f:
for line in f:
match = re.match(r'^`(.+)` \| .+ \| (.+)$', line)
# this parses a row with the format: "| `flag` | description | requirements |"
match = re.match(r'^\| `(.+)`\s+\| .+ \| (.+) \|$', line)
if match is None:
continue
feature = match.group(1).strip()
Expand Down

0 comments on commit 11c7fef

Please sign in to comment.