Skip to content

Commit 44ec72f

Browse files
committed
Update namespace and use exported regexp
1 parent aedb49e commit 44ec72f

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ var IS_WINDOWS = require( '@stdlib/assert/is-windows' );
4848

4949
// MAIN //
5050

51-
var posix = require( '@stdlib/regexp/filename-posix' );
52-
var win32 = require( '@stdlib/regexp/filename-windows' );
51+
var posix = require( '@stdlib/regexp/filename-posix' ).REGEXP;
52+
var win32 = require( '@stdlib/regexp/filename-windows' ).REGEXP;
5353

5454
var RE_FILENAME;
5555
if ( IS_WINDOWS ) {

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,22 @@ setReadOnly( regexp, 'reExtnameWindows', require( '@stdlib/regexp/extname-window
170170
setReadOnly( regexp, 'RE_FILENAME', require( '@stdlib/regexp/filename' ) );
171171

172172
/**
173-
* @name RE_FILENAME_POSIX
173+
* @name reFilenamePosix
174174
* @memberof regexp
175175
* @readonly
176-
* @constant
177-
* @type {RegExp}
176+
* @type {Function}
178177
* @see {@link module:@stdlib/regexp/filename-posix}
179178
*/
180-
setReadOnly( regexp, 'RE_FILENAME_POSIX', require( '@stdlib/regexp/filename-posix' ) );
179+
setReadOnly( regexp, 'reFilenamePosix', require( '@stdlib/regexp/filename-posix' ) );
181180

182181
/**
183-
* @name RE_FILENAME_WINDOWS
182+
* @name reFilenameWindows
184183
* @memberof regexp
185184
* @readonly
186-
* @constant
187-
* @type {RegExp}
185+
* @type {Function}
188186
* @see {@link module:@stdlib/regexp/filename-windows}
189187
*/
190-
setReadOnly( regexp, 'RE_FILENAME_WINDOWS', require( '@stdlib/regexp/filename-windows' ) );
188+
setReadOnly( regexp, 'reFilenameWindows', require( '@stdlib/regexp/filename-windows' ) );
191189

192190
/**
193191
* @name reFunctionName

0 commit comments

Comments
 (0)