summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xblaunits.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/blaunits.rb b/blaunits.rb
index a047a66..2245dff 100755
--- a/blaunits.rb
+++ b/blaunits.rb
@@ -64,6 +64,10 @@ begin
num = 1
from = words[0]
to = words[1]
+ elsif words.length == 3 && mid == 1
+ num = 1
+ from = words[0]
+ to = words[2]
elsif mid > 0
for i in 1..mid-1
from += words[i]