diff options
Diffstat (limited to 'node_modules/filename-reserved-regex/index.js')
-rw-r--r-- | node_modules/filename-reserved-regex/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/filename-reserved-regex/index.js b/node_modules/filename-reserved-regex/index.js new file mode 100644 index 0000000..174f46f --- /dev/null +++ b/node_modules/filename-reserved-regex/index.js @@ -0,0 +1,5 @@ +'use strict'; +/* eslint-disable no-control-regex */ +// TODO: remove parens when Node.js 6 is targeted. Node.js 4 barfs at it. +module.exports = () => (/[<>:"\/\\|?*\x00-\x1F]/g); +module.exports.windowsNames = () => (/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i); |