Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Fix #24: Help displayed in reports for some sites.
Browse files Browse the repository at this point in the history
Issues, as usual, is a bad regex.  Fixed.
  • Loading branch information
gregglind committed Oct 17, 2016
1 parent 2dddc16 commit 0a64d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function collect(val, O) {

function helpAnywhere(rawArgs) {
return rawArgs.filter(function(x) {
return /-h|--help/.exec(x);
return /^(-h|--help)$/.exec(x);
}).length;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "observatory-cli",
"description": "Command line client for Mozilla HTTP observatory service",
"version": "0.7.0",
"version": "0.7.1",
"author": "Gregg Lind <[email protected]>",
"bin": {
"observatory": "./index.js"
Expand Down

0 comments on commit 0a64d6f

Please sign in to comment.