Skip to content

Commit

Permalink
Updates error language.
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Dec 29, 2022
1 parent 72d3c92 commit ae7631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@ def check_container
end

def check_language
errors.add(:language, "Language #{language} not found.") if !language.match?(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/)
errors.add(:language, "Language #{language} is in an invalid format.") if !language.match?(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/)
end

# To be used for isolated clean up of errored individual DOIs
Expand Down

0 comments on commit ae7631d

Please sign in to comment.