.conkerorrc/init.js

This commit is contained in:
Tom Willemsen 2012-10-16 10:03:37 +02:00
parent 336021fc03
commit e0f1cc78a2

View file

@ -254,4 +254,16 @@ function read_url_github_command_handler(input)
|| read_url_github_repo_command_handler(input);
}
read_url_handler_list = [read_url_github_command_handler];
function read_url_local_port_handler(input)
{
var m = /^lh (\d{1,5})$/.exec(input);
if (m) {
return "http://localhost:" + m[1];
}
return null;
}
read_url_handler_list = [read_url_local_port_handler,
read_url_github_command_handler];