File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 41
41
continue ;
42
42
}
43
43
for ( let j = 0 ; j < reposData . length ; j ++ ) {
44
- if ( compareStrings ( this . repos [ i ] , reposData [ j ] . name ) ) {
44
+ if ( this . repos [ i ] . toLowerCase ( ) . trim ( ) === reposData [ j ] . name . toLowerCase ( ) . trim ( ) ) {
45
45
var div = document . createElement ( 'div' ) ;
46
46
div . id = 'github-card-repo' + ( i + 1 ) ;
47
47
div . innerHTML = "<a class='github-card-repo-headline' href=" + reposData [ j ] . html_url + "><b>" + reposData [ j ] . name + "</b></a><br><span class='github-card-repo-desc'>" + reposData [ j ] . description + "</span><br><span style='font-size:8pt;'>★" + reposData [ j ] . language + "</span>" ;
93
93
}
94
94
}
95
95
96
- function compareStrings ( string1 , string2 ) {
97
- string1 = string1 . toLowerCase ( ) . trim ( ) ;
98
- string2 = string2 . toLowerCase ( ) . trim ( ) ;
99
- return string1 === string2 ;
100
- }
101
-
102
96
window . onload = function ( ) {
103
97
let link = document . createElement ( 'link' ) ;
104
98
link . rel = 'stylesheet' ;
You can’t perform that action at this time.
0 commit comments