aboutsummaryrefslogtreecommitdiff
path: root/node_modules/filename-reserved-regex/index.js
blob: 174f46f00f11274eb6db195c143f2f969202934f (plain)
1
2
3
4
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);