Code:
local eMail = GetAddOnMetadata(AddOn, "X-Email"):lower()
In the above line of code, how would I get it to find/match/not freak out if the user has any number of unknown to me variant spellings of "email"?
What I really need is the "email" part, and have zero use for "X-" (I know how to gsub that out after the ToC lookup), but just off the top of my head:
- X-Email
- X-eMail
- email
- eMail
- EMail
- etc
These are obviously not the same, and if variant exists in MyAddOn, a different variant could exist in YourAddOn.