File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/lib Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ var EXCLUDE_LIST = [
55
55
'src' ,
56
56
'test'
57
57
] ;
58
+ var OPTS_COMPARE = {
59
+ 'numeric' : true
60
+ } ;
58
61
59
62
60
63
// FUNCTIONS //
@@ -107,7 +110,6 @@ function main( context ) {
107
110
return { } ;
108
111
}
109
112
dir = join ( dirname ( filename ) , '..' ) ;
110
- console . log ( dir ) ;
111
113
packages = packageDirectories ( readDir ( dir ) ) ;
112
114
requires = [ ] ;
113
115
@@ -212,7 +214,7 @@ function main( context ) {
212
214
// Find position where to insert the entry (packages are listed in alphabetical order according to module name):
213
215
pos = source . text . indexOf ( 'var ' + ns + ' = {};' ) ;
214
216
for ( i = 0 ; i < packages . length ; i ++ ) {
215
- if ( pkg . localeCompare ( packages [ i ] ) < 0 ) {
217
+ if ( pkg . localeCompare ( packages [ i ] , 'en' , OPTS_COMPARE ) < 0 ) {
216
218
break ;
217
219
}
218
220
re = new RegExp ( 'require\\( \'' + nsPath + '\\/' + packages [ i ] + '\' \\) \\);' ) ;
You can’t perform that action at this time.
0 commit comments