File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ function notCommentLine(line){
204
204
}
205
205
206
206
function compareLengthLongestFirst ( a , b ) {
207
- var result = b . length - a . length
208
- if ( result == 0 ) {
209
- result = a . localeCompare ( b )
207
+ var result = b . length - a . length ;
208
+ if ( result === 0 ) {
209
+ result = a . localeCompare ( b ) ;
210
210
}
211
211
return result ;
212
212
}
@@ -217,7 +217,7 @@ function domainsToRegex(contents){
217
217
. filter ( notCommentLine )
218
218
. map ( dePunycodeDomain ) ;
219
219
contents = [ ] . concat . apply ( [ ] , contents ) ;
220
- contents = contents . filter ( function ( s ) { return ! ! s } ) ;
220
+ contents = contents . filter ( function ( s ) { return ! ! s ; } ) ;
221
221
contents . sort ( compareLengthLongestFirst ) ;
222
222
contents = contents . join ( '|' ) ;
223
223
contents = '/*global Autolinker */\nAutolinker.tldRegex = /(?:' + contents + ')/;\n' ;
You can’t perform that action at this time.
0 commit comments