app/models/phcmembers/member/listing.rb in phcmembers-64.0.0 vs app/models/phcmembers/member/listing.rb in phcmembers-64.1.0

- old
+ new

@@ -44,10 +44,11 @@ length: { minimum: 3 }, format: { with: /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/, message: "Please follow this Email format: *****@********.***" } validates :listing_website, presence: true, - length: { minimum: 6 } + length: { minimum: 6 }, + format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" } validates :listing_phone, presence: true, format: { with: /\A(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}\z/, message: "Please Follow this Phone Member Format: ***-***-****" }