Skip to content

Commit

Permalink
Clean up remaining es6 syntax - fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Sep 8, 2015
1 parent cc3b74f commit 7478dc1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/clean-help-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ var blacklist = [
'ps '
]
var blacklistedHelpCommands = function (text) {
for (var item of blacklist) {
if (text.match(item)) {
return
for (var item in blacklist) {
if (blacklist.hasOwnProperty(item)) {
if (text.match(item)) {
return
}
}
}
return text
Expand Down

0 comments on commit 7478dc1

Please sign in to comment.