Skip to content

Commit ea769ae

Browse files
Copilotcommjoen
andcommitted
Fix regex patterns in PR index management scripts
Co-authored-by: commjoen <[email protected]>
1 parent c647b74 commit ea769ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/scripts/remove_pr_from_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def main():
1212
content = f.read()
1313

1414
# Remove the PR card for this specific PR number
15-
card_pattern = f'<div class="pr-card"[^>]*data-pr="{pr_number}"[^>]*>.*?</div>\\s*</div>'
15+
card_pattern = f'<div class="pr-card"[^>]*data-pr="{pr_number}"[^>]*>.*?</div>\s*</div>'
1616
updated_content = re.sub(card_pattern, '', content, flags=re.DOTALL)
1717

1818
# Check if there are any remaining PR cards

.github/scripts/update_pr_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def main():
9898
existing_content = f.read()
9999

100100
# Extract existing PR cards
101-
card_pattern = r'<div class="pr-card"[^>]*>.*?</div>\\s*</div>'
101+
card_pattern = r'<div class="pr-card"[^>]*>.*?</div>\s*</div>'
102102
existing_cards = re.findall(card_pattern, existing_content, re.DOTALL)
103103

104104
# Remove the current PR card if it exists

0 commit comments

Comments
 (0)