File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 318318 matches ( data ) {
319319 if ( this . searchHits && ! this . searchHits . has ( data . slug ) ) return false ;
320320 if ( this . grading !== 'all' && data . tier !== this . grading ) return false ;
321- if ( this . minCpp !== 'all' && data . cpp_min && cppRank ( data . cpp_min ) > cppRank ( this . minCpp ) ) return false ;
322- if ( this . maxCpp !== 'all' && data . cpp_max && cppRank ( data . cpp_max ) < cppRank ( this . maxCpp ) ) return false ;
321+ // Overlap filter: reject only when the library range falls entirely outside the filter range.
322+ if ( this . maxCpp !== 'all' && data . cpp_min && cppRank ( data . cpp_min ) > cppRank ( this . maxCpp ) ) return false ;
323+ if ( this . minCpp !== 'all' && data . cpp_max && cppRank ( data . cpp_max ) < cppRank ( this . minCpp ) ) return false ;
323324 if ( this . categories . length > 0 ) {
324325 const hit = data . category_slugs . some ( ( s ) => this . categories . includes ( s ) ) ;
325326 if ( ! hit ) return false ;
You can’t perform that action at this time.
0 commit comments