Skip to content

Commit b9a7945

Browse files
committed
Update regexp to prevent pkg name false positives
1 parent c47cd6f commit b9a7945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function findCommand( cmd ) {
6969
* @returns {string} file path
7070
*/
7171
function getPath( path ) {
72-
if ( /@stdlib/.test( path ) ) {
72+
if ( /^@stdlib/.test( path ) ) {
7373
// WARNING: we assume that CLIs follow the `./bin/cli` convention
7474
return resolve( __dirname, '..', 'lib', 'node_modules', path, 'bin', 'cli' );
7575
}

0 commit comments

Comments
 (0)