lib/punchlist.rb in punchlist-1.1.1 vs lib/punchlist.rb in punchlist-1.2.0
- old
+ new
@@ -42,21 +42,17 @@
@source_file_globber.source_files_exclude_glob = @options[:exclude]
end
@source_file_globber.source_files_arr
end
- def default_punchlist_line_regexp
- /XXX|TODO/
- end
-
def punchlist_line_regexp
return @regexp if @regexp
regexp_string = @options[:regexp]
if regexp_string
@regexp = Regexp.new(regexp_string)
else
- default_punchlist_line_regexp
+ Options.default_punchlist_line_regexp
end
end
def look_for_punchlist_items(filename)
lines = []