The problem is that occasionally, the name of one donee can be a substring of the name of another donee, so this can lead to false matches. An example is how "Ought" is a substring of "Forethought Foundation for Global Priorities Research"; see https://donations.vipulnaik.com/donee.php?donee=Ought
Ideally, we want to use a regex match against <start of string or pipe sign><donor or donee string><end of string or pipe sign> and update all SQL queries accordingly. I think we should be able to get a single regex that works for this; if not, in the worst case, we'll need to make a few cases.
Current SQL query in https://github.com/vipulnaik/donations/blob/master/access-portal/backend/donorDocumentList.inc https://github.com/vipulnaik/donations/blob/master/access-portal/backend/doneeDocumentList.inc and https://github.com/vipulnaik/donations/blob/master/access-portal/backend/donorDoneeDocumentList.inc says
affected_donors REGEXP <donor string>
andaffected_donees REGEXP <donee string>
etc.The problem is that occasionally, the name of one donee can be a substring of the name of another donee, so this can lead to false matches. An example is how "Ought" is a substring of "Forethought Foundation for Global Priorities Research"; see https://donations.vipulnaik.com/donee.php?donee=Ought
Ideally, we want to use a regex match against
<start of string or pipe sign><donor or donee string><end of string or pipe sign>
and update all SQL queries accordingly. I think we should be able to get a single regex that works for this; if not, in the worst case, we'll need to make a few cases.