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 e6aead0 commit b2c0f51Copy full SHA for b2c0f51
scripts/sdg_utils.py
@@ -60,10 +60,10 @@ 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*[\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(1)))
+ amount_requested = int(re.sub(r"[^\d]", "", amount_match.group(2)))
67
except ValueError:
68
amount_requested = 0
69
if "funded" in [l.lower() for l in labels] and amount_match:
0 commit comments