index.js 217 B

12345678910
  1. 'use strict';
  2. var regex = require('unc-path-regex')();
  3. module.exports = function(filepath) {
  4. if (typeof filepath !== 'string') {
  5. throw new TypeError('expected a string');
  6. }
  7. return regex.test(filepath);
  8. };