Update .clj-kondo/hooks/regex_checks.clj

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
pull/8953/head
Tienson Qin 2023-03-30 13:56:02 +08:00
parent 770fdc5894
commit 551122e839
1 changed files with 1 additions and 1 deletions

View File

@ -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)))))