File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ function notCommentLine(line){
204204}
205205
206206function 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 ) ;
210210 }
211211 return result ;
212212}
@@ -217,7 +217,7 @@ function domainsToRegex(contents){
217217 . filter ( notCommentLine )
218218 . map ( dePunycodeDomain ) ;
219219 contents = [ ] . concat . apply ( [ ] , contents ) ;
220- contents = contents . filter ( function ( s ) { return ! ! s } ) ;
220+ contents = contents . filter ( function ( s ) { return ! ! s ; } ) ;
221221 contents . sort ( compareLengthLongestFirst ) ;
222222 contents = contents . join ( '|' ) ;
223223 contents = '/*global Autolinker */\nAutolinker.tldRegex = /(?:' + contents + ')/;\n' ;
You can’t perform that action at this time.
0 commit comments