Fix performance regression in Account::Field#verifiable? (#8719)
* Fix performance regression in Account::Field#verifiable? Regression from #8703 * Fix code style issueremotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
f4d549d300
commit
bac8227519
|
@ -323,7 +323,7 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def verifiable?
|
||||
value.present? && /\A#{FetchLinkCardService::URL_PATTERN}\z/ =~ value
|
||||
value.present? && value.start_with?('http://', 'https://')
|
||||
end
|
||||
|
||||
def mark_verified!
|
||||
|
|
Loading…
Reference in New Issue