index.js 258 B

12345
  1. 'use strict';
  2. /* eslint-disable no-control-regex */
  3. // TODO: remove parens when Node.js 6 is targeted. Node.js 4 barfs at it.
  4. module.exports = () => (/[<>:"\/\\|?*\x00-\x1F]/g);
  5. module.exports.windowsNames = () => (/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i);