
export function validate_account_name(value) {
    let i, label, len, length, ref, suffix;

    suffix = 'Account name should ';
    if (!value) {
        return suffix + 'not be empty.';
    }
    length = value.length;
    if (length < 3) {
        return suffix + 'be longer.';
    }
    if (length > 16) {
        return suffix + 'be shorter.';
    }
    if (/\./.test(value)) {
        suffix = 'Each account segment should ';
    }
    ref = value.split('.');
    for (i = 0, len = ref.length; i < len; i++) {
        label = ref[i];
        if (!/^[a-z]/.test(label)) {
            return suffix + 'start with a letter.';
        }
        if (!/^[a-z0-9-]*$/.test(label)) {
            return suffix + 'have only letters, digits, or dashes.';
        }
        if (/--/.test(label)) {
            return suffix + 'have only one dash in a row.';
        }
        if (!/[a-z0-9]$/.test(label)) {
            return suffix + 'end with a letter or digit.';
        }
        if (!(label.length >= 3)) {
            return suffix + 'be longer';
        }
    }
    return null;
}
@@ -1,9 +1,8 @@
-%0A
 export f
@@ -36,24 +36,102 @@
 me(value) %7B%0A
+    const badActorList = /(polonox%7Cpoloneix%7Cblocktrads%7Cblocktrade%7Cbittrexx)/;%0A
     let i, l
@@ -505,24 +505,188 @@
 ld ';%0A    %7D%0A
+    if (badActorList.test(value)) %7B%0A        return suffix = 'Use caution sending to this account. Please double check your spelling for possible phishing. ';%0A    %7D%0A
     ref = va
@@ -1317,9 +1317,10 @@
 n null;%0A
-
 %7D
+%0A

Include bad actor list check in to column for transfering, include new warning for phishing accounts