Skip to content

Commit

Permalink
Better linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 authored Feb 22, 2024
1 parent 97e97b5 commit cf0ca33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/gfredericks/test/chuck/regexes.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
(defn ^:private re?
"Checks if the string compiles with re-pattern."
[s]
(try (and (re-pattern s) true)
(try (do (re-pattern s) true)
(catch java.util.regex.PatternSyntaxException _e
false)))

Expand Down

0 comments on commit cf0ca33

Please sign in to comment.