♻️ Major refactor of page data structure.

In preparation to future collaborative edition.
This commit is contained in:
Andrey Antukh 2019-12-04 20:13:35 +01:00
parent 8c4bdc3f31
commit af62d949d8
33 changed files with 1025 additions and 1124 deletions

View file

@ -65,7 +65,7 @@
[v]
(cond
(number? v) v
(re-matches number-rx v) (js/parseFloat v)
(and (string? v) (re-matches number-rx v)) (js/parseFloat v)
:else ::s/invalid))
(s/def ::number