Skip to content

Commit

Permalink
fix regex init
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbaltazar committed Apr 11, 2023
1 parent cb50f81 commit 1d8b643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/todo_agent/parsers/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d8b643

Please sign in to comment.