diff --git a/parser.rb b/parser.rb index adaad3e..2c8769a 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,5 @@ def word_in_string?(word, string) - # implement with your code here + return :yes if string.split(/[\s_-]/).include? word + + :no end