<?php
namespace EasyChat\Library\Messenger;






final class MaxDisplayNamePolicy {
    public static function isPlaceholder(string $name): bool {
        $name = trim($name);
        return $name === ''
            || preg_match('/^MAX(?: [0-9a-f]{6}| \d+)?$/i', $name) === 1
            || strcasecmp($name, 'MAX клиент') === 0;
    }
}
