lib/spf/model.rb in spf-0.0.27 vs lib/spf/model.rb in spf-0.0.28
- old
+ new
@@ -860,10 +860,10 @@
end
end
end
def parse_version_tag
- @parse_text.sub!(/^#{self.version_tag_pattern}\s+/ix, '')
+ @parse_text.sub!(/^#{self.version_tag_pattern}\s*/ix, '')
unless $1
raise SPF::InvalidRecordVersionError.new(
"Not a '#{self.version_tag}' record: '#{@text}'")
end
end