Add coverage for TagManager#normalize_domain (#35994)
This commit is contained in:
1 parent
3219373d56
commit
562ea656f4
3 files changed
+38
-6
No files matched your search
@@ -18,7 +18,7 @@ class TagManager
|
||||
return if domain.nil?
|
||||
|
||||
uri = Addressable::URI.new
|
||||
uri.host = domain.delete_suffix('/')
|
||||
uri.host = domain.strip.delete_suffix('/')
|
||||
uri.normalized_host
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user