Skip to content

Commit

Permalink
delint - regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 20, 2024
1 parent 518f3fd commit 815854b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/embeddable_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(url)
end

def render_embed
return render_dropbox if url.match?(/dropbox\.com/)
return render_dropbox if url.include?('dropbox.com')

"<iframe #{DEFAULT_FRAME_ATTRS} src='#{iframe_url}'></iframe>"
end
Expand All @@ -42,7 +42,7 @@ def render_dropbox
private

def optional_params
return '' unless url.match?(/snap\.berkeley/)
return '' unless url.include?('snap.berkeley')

'allow="geolocation;microphone;camera"'
end
Expand Down

0 comments on commit 815854b

Please sign in to comment.