From 9fa837075790402cd15d4373c52604e704f5e69c Mon Sep 17 00:00:00 2001 From: Louis Matthijssen Date: Tue, 20 Jun 2023 16:02:35 +0200 Subject: [PATCH] Fix call to deprecated Regex.regex?/1 --- lib/credo/check/config_comment.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/credo/check/config_comment.ex b/lib/credo/check/config_comment.ex index 3236f3f82..f327df744 100644 --- a/lib/credo/check/config_comment.ex +++ b/lib/credo/check/config_comment.ex @@ -121,7 +121,7 @@ defmodule Credo.Check.ConfigComment do end defp check_tuple_ignores_issue?(check_or_regex, issue) do - if Regex.regex?(check_or_regex) do + if match?(%Regex{}, check_or_regex) do issue.check |> to_string |> String.match?(check_or_regex)