All files / src/utils isNamespacePath.ts

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6  15x 15x   24x  
import isStr from '../preds/isStr';
 
export default function isNamespacePath( x ) {
  return isStr( x ) &&
    /^\/?[a-zA-Z0-9\-_\.]*\/([a-zA-Z0-9\-_]+)$/.test( x );
}