Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding username route.

  • Loading branch information...
commit ea81ac3d2ffdfb976313aa915d6578f81f8feb73 1 parent a5fb0b3
@vesln authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/cli.js
  2. +1 −1  lib/commands.js
View
6 lib/cli.js
@@ -28,12 +28,12 @@ var commands = require('./commands');
app.cmd(/clear ([^\s]+)/, commands.clear);
app.cmd(/version/, commands.version);
+// Username only.
+app.cmd(/([a-zA-Z0-9\-_]+)/, commands.issues);
+
// Username + repo.
app.cmd(/([^\s]+) ([^\s]+)/, commands.issues);
-// Username only.
-app.cmd(/([^\s]+)/, commands.issues);
-
/**
* Handles exceptions.
*/
View
2  lib/commands.js
@@ -69,7 +69,7 @@ commands.issues = function (username, repo) {
if (name === 'handle') {
name = app.config.stores.defaults.get('reporter');
}
-
+
request.on('end', function(err, results) {
if (err) throw err;
reporters.handle(name, results);
Please sign in to comment.
Something went wrong with that request. Please try again.