This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function requestUrl( url ) {
3030 } ) ;
3131}
3232
33- var combined = new CharacterSet ( ) ;
33+ var combinedCharacterSet = new CharacterSet ( ) ;
3434var promises = [ ] ;
3535
3636/*
@@ -55,7 +55,7 @@ var isCodePoints = args.shift() === "true";
5555// Whitelist
5656var whitelist = args . shift ( ) ;
5757if ( whitelist . length ) {
58- combined = combined . union ( new CharacterSet ( whitelist ) ) ;
58+ combinedCharacterSet = combinedCharacterSet . union ( new CharacterSet ( whitelist ) ) ;
5959}
6060
6161// Add URLS
@@ -68,19 +68,19 @@ args.forEach(function( url ) {
6868
6969Rsvp . all ( promises ) . then ( function ( results ) {
7070 results . forEach ( function ( result ) {
71- combined . add . apply ( combined , result ) ;
71+ combinedCharacterSet . add . apply ( combinedCharacterSet , result ) ;
7272 } ) ;
7373
7474 if ( isVerbose ) {
75- console . log ( pluginName + " output (" + combined . getSize ( ) + "):" ) ;
75+ console . log ( pluginName + " output (" + combinedCharacterSet . getSize ( ) + "):" ) ;
7676 }
7777
7878 if ( isCodePoints ) {
79- console . log ( combined . toArray ( ) . map ( function ( code ) {
79+ console . log ( combinedCharacterSet . toArray ( ) . map ( function ( code ) {
8080 return 'U+' + code . toString ( 16 ) ;
8181 } ) . join ( ',' ) ) ;
8282 } else {
83- console . log ( combined . toArray ( ) . map ( function ( code ) {
83+ console . log ( combinedCharacterSet . toArray ( ) . map ( function ( code ) {
8484 return String . fromCharCode ( code ) ;
8585 } ) . join ( '' ) ) ;
8686 }
You can’t perform that action at this time.
0 commit comments