Skip to content

Commit

Permalink
fix email autofill script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jun 6, 2019
1 parent b7faba9 commit f851fdf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/autofill-feedback-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const inquirer = require('inquirer')
const replace = require('replace-in-file')
const isCI = require('is-ci')
const spawn = require('cross-spawn')
const {EOL} = require('os')

if (isCI) {
console.log(`Not running autofill feedback as we're on CI`)
Expand Down Expand Up @@ -39,8 +38,8 @@ if (isCI) {
}
const options = {
files: [path.join(__dirname, '..', 'src/**/*.js')],
from: `&em=${EOL}`,
to: `&em=${encodeURIComponent(email)}${EOL}`,
from: /&em=\r?\n/,
to: `&em=${email}\n`,
}

replace(options).then(
Expand Down

0 comments on commit f851fdf

Please sign in to comment.