File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -805,12 +805,12 @@ function NAP:PrepareFilteredData(forceUpdate)
805805end
806806
807807--- @param addons table<string , boolean> # list of addons to get data for
808- --- @param addonTitleFilter string ? # optional filter for addon titles
808+ --- @param addonFilter string ? # optional filter for addon titles/names
809809--- @return NAP_ElementData[] filteredData
810810--- @return boolean displayNothing
811811--- @return table<NAP_Bucket , number> ? bucketsWithinHistory
812812--- @return table | nil overallSnapshotOverrides
813- function NAP :CollectData (addons , addonTitleFilter )
813+ function NAP :CollectData (addons , addonFilter )
814814 local now = self .frozenAt or GetTime ();
815815
816816 local historyType , historyIndex = self :GetActiveHistoryRange ();
@@ -904,7 +904,7 @@ function NAP:CollectData(addons, addonTitleFilter)
904904
905905 for addonName in pairs (addons ) do
906906 local info = self .addons [addonName ];
907- if not addonTitleFilter or info .title :lower ():match (addonTitleFilter ) then
907+ if not addonFilter or info .title :lower ():match (addonFilter ) or addonName : lower (): match ( addonFilter ) then
908908 local snapshotOverrides ;
909909 if snapshot then
910910 snapshotOverrides = {
You can’t perform that action at this time.
0 commit comments