Return empty string from extractEmail on no match
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
Research direction
Open discountsParser.go and locate extractEmail, then review the no_email case in discountsParser_test.go. Update the behavior and test expectation so a missing email produces an empty string, and run the relevant Go test to confirm it passes.
Written by the indexing model from the issue text.
Description
Overview
In discountsParser.go, the function extractEmail returns the literal string "No email here" when no email is found. This is a sentinel value, not an email. If the caller ever stores the result in DiscountProgram.Email, the database will contain the text "No email here" as an email address. Change extractEmail to return an empty string "" when no match is found. Update the test in discountsParser_test.go for the no_email case to expect "".
Resources
- Dominant language
- Go
- Stars
- 11
- Forks
- 54
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UTDNebula/api-tools
-
L1 recommended for recruits
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
L1 recommended for recruits
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
L1 recommended for recruits
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
L1 Type: Bug Report
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
L1 recommended for recruits
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in UTDNebula/api-tools
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100