Browse Source

fix: page search && remove limitation for tags

Tienson Qin 4 years ago
parent
commit
d7bcac85b0

+ 1 - 1
resources/package.json

@@ -1,6 +1,6 @@
 {
   "name": "Logseq",
-  "version": "0.1.4",
+  "version": "0.1.5",
   "main": "electron.js",
   "author": "Logseq",
   "description": "A privacy-first, open-source platform for knowledge management and collaboration.",

+ 1 - 2
src/main/frontend/components/block.cljs

@@ -1385,8 +1385,7 @@
            (str (:block/uuid block) "-" k)))]
 
       (and pre-block? properties)
-      (ui/tippy {:title "Click to edit page properties"}
-                [:span "🍵"])
+      [:span.opacity-50 "Properties"]
 
       :else
       nil)))

File diff suppressed because it is too large
+ 0 - 2
src/main/frontend/regex.cljc


+ 2 - 2
src/main/frontend/search.cljs

@@ -113,8 +113,8 @@
           (if (seq coll')
             (rest coll')
             (reduced false))))
-      (seq match)
-      (seq q)))))
+      (seq (string/lower-case match))
+      (seq (string/lower-case q))))))
 
 (defn page-search
   ([q]

+ 2 - 4
src/main/frontend/util.cljc

@@ -1005,10 +1005,8 @@
 
 (defn tag-valid?
   [tag-name]
-  (when tag-name
-    (and
-     (not (safe-re-find #"#" tag-name))
-     (safe-re-find regex/valid-tag-pattern tag-name))))
+  (when (string? tag-name)
+    (not (safe-re-find #"[# \t\r\n]+" tag-name))))
 
 (defn encode-str
   [s]

Some files were not shown because too many files changed in this diff