Skip to content

Commit

Permalink
Fix regex to comply with no-useless-escape ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jan 30, 2021
1 parent 400c6f7 commit b62647e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/replace-slack-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const slackInviteLink = process.argv[2]
const siteHeaderPath = `${__dirname}/../site/src/components/SiteHeader.js`
const readmePath = `${__dirname}/../README.md`

const slackInviteLinkRegex = /https:\/\/join\.slack\.com\/t\/emotion-slack\/shared_invite\/[^\/]+\//
const slackInviteLinkRegex = /https:\/\/join\.slack\.com\/t\/emotion-slack\/shared_invite\/[^/]+\//

const siteHeader = fs.readFileSync(siteHeaderPath, 'utf8')

Expand Down

0 comments on commit b62647e

Please sign in to comment.