Skip to content
Snippets Groups Projects
Unverified Commit bac82275 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix performance regression in Account::Field#verifiable? (#8719)

* Fix performance regression in Account::Field#verifiable?

Regression from #8703

* Fix code style issue
parent f4d549d3
No related branches found
No related tags found
No related merge requests found
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment