hqDefine('toggle_ui/js/flags', [
    'jquery',
    'knockout',
    'reports/js/config.dataTables.bootstrap',
    'hqwebapp/js/components.ko',    // select toggle widget
], function (
    $,
    ko,
    datatablesConfig
) {
    var dataTableElem = '.datatable';
    var viewModel = {
        tagFilter: ko.observable(null),
    };
    $.fn.dataTableExt.afnFiltering.push(
        function (oSettings, aData, iDataIndex) {
            if (viewModel.tagFilter() === 'all') {
                return true;
            }
            var tag = aData[0].replace(/\s+/g," ").replace(/<.*?>/g, "").replace(/^\d+ /, "");
            if (viewModel.tagFilter() === "Solutions" && tag.includes("Solutions")) {
                return true;
            }
            return tag === viewModel.tagFilter();
        }
    );
    $('#table-filters').koApplyBindings(viewModel);
    var table = datatablesConfig.HQReportDataTables({
        dataTableElem: dataTableElem,
        showAllRowsOption: true,
        includeFilter: true,
    });
    table.render();

    viewModel.tagFilter.subscribe(function (value) {
        table.datatable.fnDraw();
    });
});

hqDefine('toggle_ui/js/flags', [
    'jquery',
    'knockout',
    'reports/js/config.dataTables.bootstrap',
    'hqwebapp/js/components.ko',    // select toggle widget
], function (
    $,
    ko,
    datatablesConfig
) {
    var dataTableElem = '.datatable';
    var viewModel = {
        tagFilter: ko.observable(null),
    };
    $.fn.dataTableExt.afnFiltering.push(
        function (oSettings, aData, iDataIndex) {
            if (viewModel.tagFilter() === 'all') {
                return true;
            }
            var tag = aData[0].replace(/\n/g," ").replace(/<.*?>/g, "");
            if (viewModel.tagFilter() === "Solutions" && tag.includes("Solutions")) {
                return true;
            }
            return tag === viewModel.tagFilter();
        }
    );
    $('#table-filters').koApplyBindings(viewModel);
    var table = datatablesConfig.HQReportDataTables({
        dataTableElem: dataTableElem,
        showAllRowsOption: true,
        includeFilter: true,
    });
    table.render();

    viewModel.tagFilter.subscribe(function (value) {
        table.datatable.fnDraw();
    });
});

--- 
+++ 
@@ -17,7 +17,7 @@
             if (viewModel.tagFilter() === 'all') {
                 return true;
             }
-            var tag = aData[0].replace(/\n/g," ").replace(/<.*?>/g, "");
+            var tag = aData[0].replace(/\s+/g," ").replace(/<.*?>/g, "").replace(/^\d+ /, "");
             if (viewModel.tagFilter() === "Solutions" && tag.includes("Solutions")) {
                 return true;
             }
Fix UI filters on Feature Flags page
