function query(price, hide) {
    if (!price && price != 0) return;
    return hide == "1" ? price.toString().replace(getRegExp('([0-9])', 'g'), '*') : price
};

function verify(text, name, list = []) {
    var conceal = !list.some(function (v) {
        return v == name
    });
    return conceal ? text.toString().replace(getRegExp('([0-9])', 'g'), '*') : text
};

function hidePrice(name, list = []) {
    return !list.some(function (v) {
        return v == name
    });
}

module.exports = {
    query: query,
    verify: verify,
    hidePrice: hidePrice
}