Skip to content

Commit

Permalink
Add newline support in message
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdenio committed Jul 3, 2020
1 parent d81a45b commit 5eaf58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hackclub-ship",
"version": "0.0.3",
"version": "0.0.4",
"description": "The best way for Hack Club members to ship their projects to Slack!",
"private": false,
"types": "build/types/types.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/commands/ship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const command: GluegunCommand = {

let { text, channels: selectedChannels } = await ask(questions)

text = text.replace(/\\n/g, '\n')

if (!(await confirm('Are you ready to ship?'))) {
print.error('Aborting. :(')
return
Expand Down

0 comments on commit 5eaf58d

Please sign in to comment.