diff --git a/lib/todo_agent/parsers/ruby.rb b/lib/todo_agent/parsers/ruby.rb index b1a00e3..41b72bd 100644 --- a/lib/todo_agent/parsers/ruby.rb +++ b/lib/todo_agent/parsers/ruby.rb @@ -9,7 +9,7 @@ module Parsers class Ruby def self.parse(file) regex_str = TodoAgent::Parsers::RegexBuilder.regex - regexp = Regexp.new("^\\s*##{regex_str}$", "mig") + regexp = Regexp.new("^\\s*##{regex_str}$", Regexp::MULTILINE | Regexp::IGNORECASE) comments = [] # TODO: This logic belongs out of the specific ruby parser