File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -155,17 +155,17 @@ var marlinfwSearch = (() => {
155155 qmatch = newm ;
156156
157157 let resultsCount = 0 , results = '' , prevclass = '' ;
158- $ . each ( searchData , ( index , item ) => {
158+ $ . each ( searchData , ( _ , it ) => {
159159 // check if search term is in content or title
160- const comp = ( item . name + " " + item . title + ' ' + item . group + ' ' + item . content + item . excerpt ) . toLowerCase ( ) ;
160+ const comp = ` ${ it . name } ${ it . title } ${ it . group } ${ it . content } ${ it . excerpt } ` . normalize ( 'NFD' ) . replace ( / [ \u0300 - \u036f ] / g , '' ) . toLowerCase ( ) ;
161161 if ( comp . match ( qmatch ) ) {
162- if ( item . class != prevclass ) {
163- prevclass = item . class ;
162+ if ( it . class != prevclass ) {
163+ prevclass = it . class ;
164164 odd = false ;
165- let fancy = section_head [ item . class ] ;
166- results += '<h2 class="' + item . class + '">' + ( fancy ? fancy : item . class . toTitleCase ( ) ) + '</h2>' ;
165+ let fancy = section_head [ it . class ] ;
166+ results += '<h2 class="' + it . class + '">' + ( fancy ? fancy : it . class . toTitleCase ( ) ) + '</h2>' ;
167167 }
168- results += self . populateResultContent ( $resultTemplate . html ( ) , item ) ;
168+ results += self . populateResultContent ( $resultTemplate . html ( ) , it ) ;
169169 odd = ! odd ;
170170 resultsCount ++ ;
171171 }
You can’t perform that action at this time.
0 commit comments