export function normalizePermissionQuery(value) {
    return String(value ?? '').trim().toLocaleLowerCase();
}

export function permissionMatches(row, query) {
    if (query === '') {
        return true;
    }

    return String(row.dataset.search ?? '').includes(query);
}
