Mercurial > repo
changeset 4049:7b9b84c31f46
<mrhmouse> mv ello_cmd bin/ello
author | HackBot |
---|---|
date | Fri, 22 Nov 2013 15:45:28 +0000 |
parents | 101b0a63a4ff |
children | 5dc18aebb949 |
files | bin/ello ello_cmd |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/ello Fri Nov 22 15:45:28 2013 +0000 @@ -0,0 +1,2 @@ +#!/usr/bin/env node +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+"!"); \ No newline at end of file
--- a/ello_cmd Fri Nov 22 15:45:20 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -#!/usr/bin/env node -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+"!"); \ No newline at end of file