From 551122e839fc9574f389e9a3756fd3bd2257f69c Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 30 Mar 2023 13:56:02 +0800 Subject: [PATCH] Update .clj-kondo/hooks/regex_checks.clj Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com> --- .clj-kondo/hooks/regex_checks.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clj-kondo/hooks/regex_checks.clj b/.clj-kondo/hooks/regex_checks.clj index 620a6e548..38cdf6e18 100644 --- a/.clj-kondo/hooks/regex_checks.clj +++ b/.clj-kondo/hooks/regex_checks.clj @@ -11,5 +11,5 @@ (when (and (= (api/tag regex) :regex) (re-matches double-escaped-checker regex-string)) (api/reg-finding! (assoc (meta regex) - :message (str "double slash (\\\\) found in this regular expression followed by a regex special character (, + , * , ? , ^ , $ , | , \\ ), are you mistakenly double escaped a special character? Only escape one-time is required. No escape is required in character class []. (use #_{:clj-kondo/ignore [:regex-checks/double-escaped-regex]} to ignore)") + :message (str "double slash (\\\\) found in this regular expression followed by a regex special character (, + , * , ? , ^ , $ , | , \\ ), have you mistakenly double escaped a special character? Only escaping one-time is required. No escape is required in character class []. (use #_{:clj-kondo/ignore [:regex-checks/double-escaped-regex]} to ignore)") :type :regex-checks/double-escaped-regex)))))