Skip to content

Commit

Permalink
Use ~r instead of ~R
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed May 29, 2024
1 parent ddc0bea commit 6cee699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix_deploy/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule MixDeploy.User do
[_name, pairs] ->
for pair <- String.split(pairs, ",") do
[num, name] =
Regex.run(~R/^(\d+)\(([a-zA-Z1-9_.-]+)\)$/, pair, capture: :all_but_first)
Regex.run(~r/^(\d+)\(([a-zA-Z1-9_.-]+)\)$/, pair, capture: :all_but_first)

{name, String.to_integer(num)}
end
Expand Down

0 comments on commit 6cee699

Please sign in to comment.