Skip to content

Commit

Permalink
Add more specificity to the anstract length check
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrett Clark committed Feb 4, 2020
1 parent 4637534 commit 4c2f2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def has_reviewer_activity?
private

def abstract_length
return unless abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600
return unless abstract_changed? && abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600
errors.add(:abstract, "is too long (maximum is 600 characters)")
end

Expand Down

0 comments on commit 4c2f2df

Please sign in to comment.