| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 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); | ||||