Skip to content

Commit

Permalink
fix: standard
Browse files Browse the repository at this point in the history
  • Loading branch information
zacanger committed Jul 3, 2022
1 parent 995d4d7 commit d96b35f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -75,10 +75,12 @@ const isWindowsInstalled = (program) => {

const sanitize = (program) => {
// from https://github.com/parshap/node-sanitize-filename/ licensed WTFPL/ISC
/* eslint-disable no-useless-escape,no-control-regex */
const illegalRe = /[\/\?<>\\:\*\|"]/g
const controlRe = /[\x00-\x1f\x80-\x9f]/g
const reservedRe = /^\.+$/
const probablyTwoThingsRe = /\&\&/g
/* eslint-enable no-useless-escape,no-control-regex */
return program
.replace(illegalRe, '')
.replace(controlRe, '')
Expand Down

0 comments on commit d96b35f

Please sign in to comment.