File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
return this . articles ;
32
32
}
33
33
matchingKeyword = ( article ) => {
34
- if ( article . title . includes ( this . keyword ) ) {
34
+ if ( article . title . toLowerCase ( ) . includes ( this . keyword . toLowerCase ( ) ) ) {
35
35
this . relevantArticles . push ( article ) ;
36
36
}
37
37
} ;
Original file line number Diff line number Diff line change 50
50
< h1 > Guardian News</ h1 >
51
51
< input type ="text " id ="search-term " /> </ div > </ br >
52
52
< button id ="search-news-button "> search news</ button >
53
- < button id ="refresh-news-button "> Refresh news</ button > </ br >
53
+ < button id ="refresh-news-button "> refresh news</ button > </ br >
54
54
< div id ="main-container "> </ div >
55
55
< script src ="bundle.js "> </ script >
56
56
</ body >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class NewsModel {
28
28
29
29
30
30
matchingKeyword = ( article ) => {
31
- if ( article . title . includes ( this . keyword ) ) {
31
+ if ( article . title . toLowerCase ( ) . includes ( this . keyword . toLowerCase ( ) ) ) {
32
32
this . relevantArticles . push ( article )
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments