cf-swearjar 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swearjar/version.rb +1 -1
- data/lib/swearjar.rb +2 -2
- metadata +1 -1
data/lib/swearjar/version.rb
CHANGED
data/lib/swearjar.rb
CHANGED
@@ -33,8 +33,8 @@ class Swearjar
|
|
33
33
|
|
34
34
|
def scan(string, &block)
|
35
35
|
string = string.to_s
|
36
|
-
string.scan(/\b[a-zA-Z-]+\b/) do |word|
|
37
|
-
block.call(word, hash[word.downcase]
|
36
|
+
string.scan(/\b[a-zA-Z-']+\b/) do |word|
|
37
|
+
block.call(word, hash[word.downcase])
|
38
38
|
end
|
39
39
|
if match = tester.match_with_result(string)
|
40
40
|
block.call(match.last, match.first)
|