classyfier 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/classyfier/us_regions.rb +3 -1
- data/lib/classyfier/version.rb +1 -1
- metadata +1 -1
@@ -106,7 +106,7 @@ module Classyfier
|
|
106
106
|
end
|
107
107
|
|
108
108
|
unless !opts[:text]
|
109
|
-
chunks = opts[:text].split(
|
109
|
+
chunks = opts[:text].split(/[,\s]/)
|
110
110
|
for word in chunks
|
111
111
|
cleanword = clean_word(word.downcase)
|
112
112
|
|
@@ -116,6 +116,8 @@ module Classyfier
|
|
116
116
|
return @codes[state] if state
|
117
117
|
end
|
118
118
|
end
|
119
|
+
|
120
|
+
return nil
|
119
121
|
end
|
120
122
|
|
121
123
|
protected
|
data/lib/classyfier/version.rb
CHANGED