Skip to content

Commit a671fd2

Browse files
committed
Update namespaces and usage
1 parent 189280f commit a671fd2

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

lib/node_modules/@stdlib/namespace/lib/namespace/r.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,14 +1006,6 @@ ns.push({
10061006
]
10071007
});
10081008

1009-
ns.push({
1010-
'alias': 'RE_EXTENDED_LENGTH_PATH',
1011-
'path': '@stdlib/regexp/extended-length-path',
1012-
'value': require( '@stdlib/regexp/extended-length-path' ),
1013-
'type': 'RegExp',
1014-
'related': []
1015-
});
1016-
10171009
ns.push({
10181010
'alias': 'RE_EXTNAME',
10191011
'path': '@stdlib/regexp/extname',
@@ -1278,6 +1270,14 @@ ns.push({
12781270
'related': []
12791271
});
12801272

1273+
ns.push({
1274+
'alias': 'reExtendedLengthPath',
1275+
'path': '@stdlib/regexp/extended-length-path',
1276+
'value': require( '@stdlib/regexp/extended-length-path' ),
1277+
'type': 'Function',
1278+
'related': []
1279+
});
1280+
12811281
ns.push({
12821282
'alias': 'reFromString',
12831283
'path': '@stdlib/utils/regexp-from-string',

lib/node_modules/@stdlib/regexp/lib/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,13 @@ setReadOnly( regexp, 'RE_DIRNAME_WINDOWS', require( '@stdlib/regexp/dirname-wind
125125
setReadOnly( regexp, 'reEOL', require( '@stdlib/regexp/eol' ) );
126126

127127
/**
128-
* @name RE_EXTENDED_LENGTH_PATH
128+
* @name reExtendedLengthPath
129129
* @memberof regexp
130130
* @readonly
131-
* @constant
132-
* @type {RegExp}
131+
* @type {Function}
133132
* @see {@link module:@stdlib/regexp/extended-length-path}
134133
*/
135-
setReadOnly( regexp, 'RE_EXTENDED_LENGTH_PATH', require( '@stdlib/regexp/extended-length-path' ) );
134+
setReadOnly( regexp, 'reExtendedLengthPath', require( '@stdlib/regexp/extended-length-path' ) );
136135

137136
/**
138137
* @name RE_EXTNAME

lib/node_modules/@stdlib/utils/convert-path/lib/convert_path.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24-
var RE_EXTENDED_LENGTH_PATH = require( '@stdlib/regexp/extended-length-path' );
24+
var reExtendedLengthPath = require( '@stdlib/regexp/extended-length-path' );
2525
var lowercase = require( '@stdlib/string/lowercase' );
2626
var replace = require( '@stdlib/string/replace' );
2727

@@ -90,7 +90,7 @@ function convertPath( from, to ) {
9090
return replace( out, '/', '\\' );
9191
}
9292
// Check for Windows extended-length paths...
93-
if ( RE_EXTENDED_LENGTH_PATH.test( from ) ) {
93+
if ( reExtendedLengthPath.REGEXP.test( from ) ) {
9494
throw new Error( 'invalid argument. Cannot convert Windows extended-length paths to POSIX paths. Value: `'+from+'`.' );
9595
}
9696
// Convert to a mixed path convention by combining a Windows drive letter convention with a POSIX path separator...

0 commit comments

Comments
 (0)