annotate bin/ello @ 4049:7b9b84c31f46

<mrhmouse> mv ello_cmd bin/ello
author HackBot
date Fri, 22 Nov 2013 15:45:28 +0000
parents
children 4db1b679008d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4049
7b9b84c31f46 <mrhmouse> mv ello_cmd bin/ello
HackBot
parents:
diff changeset
1 #!/usr/bin/env node
7b9b84c31f46 <mrhmouse> mv ello_cmd bin/ello
HackBot
parents:
diff changeset
2 var e,l,o,t;t=process.argv[2],(null!=t?t.length:void 0)||(console.log("Usage: ello <name>"),process.exit()),o=/(.*)(e)$/i,e=/(.*)([bcdfghjklmnpqrstvwxz])([o0].*)/i,l=/[bcdfghjklmnpqrstvwxz]/i,console.log(e.test(t)?t.replace(e,function(e,l,o,t){return l+o+"ell"+t}):o.test(t)?t.replace(o,function(e,l){return l+"ello"}):l.test(t)?t+"ello":"Hello, "+t+"!");