Skip to content

fix: affiliate code validate#84

Merged
kernelwhisperer merged 1 commit intomainfrom
fix/affiliate-code-validation
Feb 4, 2026
Merged

fix: affiliate code validate#84
kernelwhisperer merged 1 commit intomainfrom
fix/affiliate-code-validation

Conversation

@kernelwhisperer
Copy link
Contributor

A bug I introduced after I change the code length and consolidated all regex codes to be the same.

The bug: we lowercase the code and then validate it against /^[A-Z0-9_-]{5,20}$/ which will never be true.
Fix: uppercase the code before validation

@kernelwhisperer kernelwhisperer requested a review from a team February 4, 2026 15:40
@kernelwhisperer kernelwhisperer self-assigned this Feb 4, 2026
Copy link
Collaborator

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the types, have you published the npm package yet?
I expect it to be needed for interfacing with it on bff and cowswap

@kernelwhisperer
Copy link
Contributor Author

Regarding the types, have you published the npm package yet? I expect it to be needed for interfacing with it on bff and cowswap

No I did not, bff has the interfaces written in there, I'll make sure to revisit this though!

@kernelwhisperer kernelwhisperer merged commit a207e9c into main Feb 4, 2026
3 checks passed
@kernelwhisperer kernelwhisperer deleted the fix/affiliate-code-validation branch February 4, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants