Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 22, 2024
1 parent 75a5947 commit 559bbf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/renderer/frame/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
(rf/reg-event-db
::zoom-in
[persist]
(fn [db [_ _]]
(fn [db [_]]
(h/zoom-by db (/ 1 (:zoom-sensitivity db)))))

(rf/reg-event-db
::zoom-out
[persist]
(fn [db [_ _]]
(fn [db [_]]
(h/zoom-by db (:zoom-sensitivity db))))

(rf/reg-event-db
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/utils/attribute.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
[renderer.element.hierarchy :as element.hierarchy]
[renderer.utils.bcd :as bcd]))

(defonce mdn-data (js->clj mdn :keywordize-keys true))
(def mdn-data
"https://github.com/mdn/data/blob/main/docs/updating_css_json.md"
(js->clj mdn :keywordize-keys true))

(defn- enhance-data-readability
(defn enhance-data-readability
[property k]
(cond-> property
(and (get property k) (string? (get property k)))
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/compatibility.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[renderer.document.db :refer [PersistedDocument]]
[renderer.utils.migrations :as migrations]))

;; https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
(def ver-regex
"https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string"
#"(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$")

(def Version
Expand Down

0 comments on commit 559bbf5

Please sign in to comment.