isBlockedOfficialName function
Check if a marketplace name impersonates an official Anthropic/Neomage marketplace.
Implementation
bool isBlockedOfficialName(String name) {
if (allowedOfficialMarketplaceNames.contains(name.toLowerCase())) {
return false;
}
if (_nonAsciiPattern.hasMatch(name)) {
return true;
}
return blockedOfficialNamePattern.hasMatch(name);
}