Files

485 B
Raw Permalink Blame History

MercanRey6.js — splitContact() (satır 117)

← MercanRey6.js · ← Master

function splitContact(entry)
{
    var text = String(entry == null ? "" : entry);
    var index = text.lastIndexOf("#");

    if (index < 0)
    {
        return {
            name: text,
            uuid: ""
        };
    }

    return {
        name: text.substring(0, index),
        uuid: text.substring(index + 1)
    };
}