Skip to content

Commit

Permalink
Allow backticks in release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Nov 24, 2023
1 parent ff94b7e commit e64e05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/release_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ReleaseMetadata < ApplicationRecord
NOTES_MAX_LENGTH = 4000
DEFAULT_LOCALE = "en-US"
DEFAULT_RELEASE_NOTES = "The latest version contains bug fixes and performance improvements."
PLAINTEXT_REGEX = /\A[!@#$%^&*()_+\-=\[\]{};':"\\|,.\/?\s\p{Alnum}\p{P}\p{Zs}\p{Emoji_Presentation}]+\z/
PLAINTEXT_REGEX = /\A[!@#$%^&*()_+\-=\[\]{};':"\\|`,.\/?\s\p{Alnum}\p{P}\p{Zs}\p{Emoji_Presentation}]+\z/

validates :release_notes, format: {with: PLAINTEXT_REGEX, message: :no_special_characters, multiline: true}, length: {maximum: NOTES_MAX_LENGTH}
validates :promo_text, format: {with: PLAINTEXT_REGEX, message: :no_special_characters, allow_blank: true, multiline: true}, length: {maximum: 170}
Expand Down

0 comments on commit e64e05a

Please sign in to comment.