diff options
author | Joe Robinson <joe@lc8n.com> | 2020-04-28 12:36:37 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2020-04-28 12:36:37 +0100 |
commit | f9ad824acb3923c43f68ed95f70a117be82baf97 (patch) | |
tree | c51cbda946c0f58a5f4c520e94694637c5d3b7ef | |
parent | 4cf73204a1349693e09d5b579aa3109b812d7469 (diff) |
Allow the input in form 'A to B'
-rwxr-xr-x | blaunits.rb | 4 |
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] |