File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
scaladoc/resources/dotty_res/scripts/components Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ class List {
139
139
: includesInputValue ( )
140
140
141
141
function includesInputValue ( ) {
142
- return elementData . name . includes ( filter . value ) || elementData . description . includes ( filter . value ) ;
142
+ const lcValue = filter . value . toLowerCase ( )
143
+ return elementData . name . toLowerCase ( ) . includes ( lcValue )
144
+ || elementData . description . toLowerCase ( ) . includes ( lcValue ) ;
143
145
}
144
146
145
147
function areFiltersFromElementSelected ( ) {
Original file line number Diff line number Diff line change @@ -75,12 +75,14 @@ class Filter {
75
75
* @returns { Filters }
76
76
*/
77
77
_generateFiltersOnTyping ( value ) {
78
+ const lcValue = value . toLowerCase ( )
79
+
78
80
const elementsDatasets = this . elementsRefs
79
81
. filter ( element => {
80
- const name = getElementTextContent ( getElementNameRef ( element ) ) ;
81
- const description = getElementTextContent ( getElementDescription ( element ) ) ;
82
+ const lcName = getElementTextContent ( getElementNameRef ( element ) ) . toLowerCase ( ) ;
83
+ const lcDescription = getElementTextContent ( getElementDescription ( element ) ) . toLowerCase ( ) ;
82
84
83
- return name . includes ( value ) || description . includes ( value ) ;
85
+ return lcName . includes ( lcValue ) || lcDescription . includes ( lcValue ) ;
84
86
} )
85
87
. map ( element => this . _getDatasetWithKeywordData ( element . dataset ) )
86
88
You can’t perform that action at this time.
0 commit comments