Skip to content

Commit 8e7aaff

Browse files
committed
Avoid re-declaring dir variable
1 parent 329126c commit 8e7aaff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/regexp/dirname/docs

lib/node_modules/@stdlib/regexp/dirname/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
> var dir = RE_POSIX.exec( '/foo/bar/index.js' )[ 1 ]
2525
'/foo/bar'
2626
> var RE_WIN32 = {{alias}}( 'win32' );
27-
> var dir = RE_WIN32.exec( 'C:\\foo\\bar\\index.js' )[ 1 ]
27+
> dir = RE_WIN32.exec( 'C:\\foo\\bar\\index.js' )[ 1 ]
2828
'C:\\foo\\bar'
2929
> var str = RE.toString();
3030
> var bool = ( str === RE_POSIX.toString() || str === RE_WIN32.toString() )

0 commit comments

Comments
 (0)