lib/changelog/changelog_line/changelog_line.rb in danger-changelog-0.6.0 vs lib/changelog/changelog_line/changelog_line.rb in danger-changelog-0.6.1
- old
+ new
@@ -5,12 +5,14 @@
NON_DELIMITERS = /[^(){}\[\]]*/.freeze
PAIRED = /\(#{NON_DELIMITERS}\)|\{#{NON_DELIMITERS}\}|\[#{NON_DELIMITERS}\]/.freeze
DELIMITER = /[(){}\[\]]/.freeze
attr_accessor :line
+ attr_accessor :validation_result
def initialize(line)
self.line = line
+ self.validation_result = nil
end
# Match the line with the validation rules
def valid?
raise 'ChangelogLine subclass must implement the valid? method'