Follow up: Pull request #497 - Added check for extract_numbers parameter.
This commit is contained in:
parent
1e23cac9a1
commit
3e5f80b0e3
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ returns
|
|||
|
||||
def self.extract_numbers(text)
|
||||
# see specs for example
|
||||
return [] if !text.is_a?(String)
|
||||
text.scan(/([\d|\s|\-|\(|\)]{6,26})/).map do |match|
|
||||
normalize_number(match[0])
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue