Skip to content

Commit

Permalink
remove /
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamsager committed Apr 27, 2023
1 parent f124499 commit 1eda576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Theme
class DevServer
class LocalAssets
THEME_REGEX = %r{//cdn\.shopify\.com/s/.+?/(assets/.+?\.(?:css|js))}
VANITY_THEME_REGEX = %r{//cdn/shop/.+?/(assets/.+?\.(?:css|js))}
VANITY_THEME_REGEX = %r{/cdn/shop/.+?/(assets/.+?\.(?:css|js))}

class FileBody
def initialize(path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_replace_local_assets_in_reponse_body_with_vanity_url
original_html = <<~HTML
<html>
<head>
<link rel="stylesheet" href="//cdn/shop/t/2/assets/theme.css" />
<link rel="stylesheet" href="/cdn/shop/t/2/assets/theme.css" />
</head>
</html>
HTML
Expand Down

0 comments on commit 1eda576

Please sign in to comment.