Skip to content

Commit

Permalink
Merge pull request hubotio#117 from jasford/js-help
Browse files Browse the repository at this point in the history
Updated the help generator to allow for .js scripts to include help lines
  • Loading branch information
atmos committed Oct 30, 2011
2 parents 28c5b29 + 1d1b69d commit a1c3708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robot.coffee
Expand Up @@ -124,7 +124,7 @@ class Robot
Fs.readFile path, "utf-8", (err, body) =>
throw err if err
for i, line of body.split("\n")
break if line[0] != '#'
break if !(line[0] == '#' or line.substr(0, 2) == '//')
continue if !line.match('-')
@commands.push line[2..line.length]

Expand Down

0 comments on commit a1c3708

Please sign in to comment.