We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c0f51 commit 0993fc4Copy full SHA for 0993fc4
scripts/sdg_utils.py
@@ -60,7 +60,7 @@ def parse_issue(issue):
60
if url := re.search(r"\[(.*)\]\(.*\)", project_name):
61
project_name = url.group(1)
62
63
- amount_match = re.search(r"(?i)Amount requested\s*(\(USD\))\s*[\n\r]+(.+?)(?=\n\S|$)", body, re.DOTALL)
+ amount_match = re.search(r"(?i)Amount requested\s*(\(USD\))?\s*[\n\r]+(.+?)(?=\n\S|$)", body, re.DOTALL)
64
funded_amount = 0
65
try:
66
amount_requested = int(re.sub(r"[^\d]", "", amount_match.group(2)))
0 commit comments