All files / src/utils isNamespacePath.js

0% Statements 0/3
0% Branches 0/2
0% Functions 0/1
0% Lines 0/3
1 2 3 4 5 6 7 8 9                 
var isStr = require( '../preds/isStr' );
 
function isNamespacePath( x ) {
  return isStr( x ) &&
    /^\/?[a-zA-Z0-9\-_\.]*\/([a-zA-Z0-9\-_]+)$/.test( x );
}
 
module.exports = isNamespacePath;