Skip to content

Commit 5dbaaab

Browse files
committed
Fix ordering of regular expression
1 parent e30049e commit 5dbaaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/site.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Site
1111
def self.get_site(domain)
1212
match = nil
1313
Site.all.each do |site|
14-
match = site if site.domain.match(domain)
14+
match = site if domain && domain.match(site.domain)
1515
end
1616
match
1717
end

0 commit comments

Comments
 (0)