Skip to content

Commit 603237a

Browse files
committed
Update comparison check and remove logging
1 parent bcdec1c commit 603237a

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/lib

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/lib/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ var EXCLUDE_LIST = [
5555
'src',
5656
'test'
5757
];
58+
var OPTS_COMPARE = {
59+
'numeric': true
60+
};
5861

5962

6063
// FUNCTIONS //
@@ -107,7 +110,6 @@ function main( context ) {
107110
return {};
108111
}
109112
dir = join( dirname( filename ), '..' );
110-
console.log( dir );
111113
packages = packageDirectories( readDir( dir ) );
112114
requires = [];
113115

@@ -212,7 +214,7 @@ function main( context ) {
212214
// Find position where to insert the entry (packages are listed in alphabetical order according to module name):
213215
pos = source.text.indexOf( 'var '+ns+' = {};' );
214216
for ( i = 0; i < packages.length; i++ ) {
215-
if ( pkg.localeCompare( packages[ i ] ) < 0 ) {
217+
if ( pkg.localeCompare( packages[ i ], 'en', OPTS_COMPARE ) < 0 ) {
216218
break;
217219
}
218220
re = new RegExp( 'require\\( \'' + nsPath + '\\/' + packages[ i ] + '\' \\) \\);' );

0 commit comments

Comments
 (0)