Skip to content

Commit

Permalink
Merge branch 'master' into no-more-next
Browse files Browse the repository at this point in the history
technicalpickles authored Aug 9, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 9e70d38 + 319ed15 commit 6efbd0c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/deploying/heroku.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ permalink: /docs/deploying/heroku/
If you've been following along with [Getting Started](../index.md), it's time to deploy so you can use it beyond just your local machine.
[Heroku](http://www.heroku.com/) is an easy and supported way to deploy hubot.

Install the [Heroku Toolbelt](https://toolbelt.heroku.com/) to start, then follow their 'Getting Started' instructions, including logging in the first time:
Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) to start, then follow their '[Getting Started](https://devcenter.heroku.com/articles/heroku-cli#getting-started)' instructions, including logging in the first time:

% heroku login
Enter your Heroku credentials.
2 changes: 1 addition & 1 deletion src/robot.js
Original file line number Diff line number Diff line change
@@ -524,7 +524,7 @@ class Robot {
const body = fs.readFileSync(require.resolve(path), 'utf-8')

const useStrictHeaderRegex = /^["']use strict['"];?\s+/
const lines = body.replace(useStrictHeaderRegex, '').split('\n')
const lines = body.replace(useStrictHeaderRegex, '').split(/(?:\n|\r\n|\r)/)
.reduce(toHeaderCommentBlock, {lines: [], isHeader: true}).lines
.filter(Boolean) // remove empty lines
let currentSection = null

0 comments on commit 6efbd0c

Please sign in to comment.