Skip to content

Commit

Permalink
fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
hez committed Jan 29, 2025
1 parent 83eeda4 commit c36408f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shopify_api/shop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule ShopifyAPI.Shop do
if Mix.env() == :test or Mix.env() == :dev do
def to_uri(myshopify_domain) do
{domain, port} =
if String.match?(myshopify_domain, ~R/.*:.*/) do
if String.match?(myshopify_domain, ~r/.*:.*/) do
[domain, str_port] = String.split(myshopify_domain, ":")
{domain, String.to_integer(str_port)}
else
Expand Down

0 comments on commit c36408f

Please sign in to comment.