Introduction
Introduction Statistics Contact Development Disclaimer Help
Correct how multiple lines of input are handled for dial jobs - warvox - VoIP b…
Log
Files
Refs
README
---
commit e925b0ad1a5b8ed9fbfe16bd885512f415f1e9c2
parent 3693a128c65ac0ad649438031bf315e6933e208c
Author: HD Moore <[email protected]>
Date: Sun, 5 Feb 2012 12:54:48 -0600
Correct how multiple lines of input are handled for dial jobs
Diffstat:
M lib/warvox/phone.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/warvox/phone.rb b/lib/warvox/phone.rb
@@ -3,7 +3,9 @@ class Phone
# Convert 123456XXXX to an array of expanded numbers
def self.crack_mask(mask)
- self.crack_masks([mask])
+ masks = mask.split(/[\s,]+/) || [ ]
+ masks.delete(nil)
+ self.crack_masks(masks)
end
def self.crack_masks(masks)
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.