mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
chore: replace re-find with safe-re-find
This commit is contained in:
@@ -324,7 +324,7 @@
|
||||
(remove string/blank?)
|
||||
(map (fn [x]
|
||||
(if (or (contains? #{"+" "-"} (first x))
|
||||
(and (re-find #"\d" (first x))
|
||||
(and (util/safe-re-find #"\d" (first x))
|
||||
(some #(string/ends-with? x %) ["y" "m" "d" "h" "min"])))
|
||||
(keyword (name x))
|
||||
x)))
|
||||
|
||||
Reference in New Issue
Block a user