File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -181,15 +181,15 @@ <h4 class="list-group-item-heading">
181
181
}
182
182
}
183
183
184
- function searchLint ( lint , therm ) {
184
+ function searchLint ( lint , term ) {
185
185
for ( const field in lint . docs ) {
186
186
// Continue if it's not a property
187
187
if ( ! lint . docs . hasOwnProperty ( field ) ) {
188
188
continue ;
189
189
}
190
190
191
191
// Return if not found
192
- if ( lint . docs [ field ] . toLowerCase ( ) . indexOf ( therm ) !== - 1 ) {
192
+ if ( lint . docs [ field ] . toLowerCase ( ) . indexOf ( term ) !== - 1 ) {
193
193
return true ;
194
194
}
195
195
}
@@ -247,13 +247,13 @@ <h4 class="list-group-item-heading">
247
247
248
248
// Search the description
249
249
// The use of `for`-loops instead of `foreach` enables us to return early
250
- let therms = searchStr . split ( " " ) ;
251
- for ( index = 0 ; index < therms . length ; index ++ ) {
252
- if ( lint . id . indexOf ( therms [ index ] ) !== - 1 ) {
250
+ let terms = searchStr . split ( " " ) ;
251
+ for ( index = 0 ; index < terms . length ; index ++ ) {
252
+ if ( lint . id . indexOf ( terms [ index ] ) !== - 1 ) {
253
253
continue ;
254
254
}
255
255
256
- if ( searchLint ( lint , therms [ index ] ) ) {
256
+ if ( searchLint ( lint , terms [ index ] ) ) {
257
257
continue ;
258
258
}
259
259
You can’t perform that action at this time.
0 commit comments