scramblr 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/scramblr.rb +1 -1
- metadata +1 -1
data/lib/scramblr.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
def obfuscate(phrase, buzz_words)
|
2
|
-
puts phrase.split(/
|
2
|
+
puts phrase.split(/(\s)/).collect{ |word| buzz_words.include?(word) ? '*' * (word.size) : word }.join
|
3
3
|
end
|
4
4
|
|
5
5
|
def report(phrase, buzz_words)
|