Browse Source

fix: Pages with "." in the title do not show Hierarchy at the bottom

close #3085
Tienson Qin 4 years ago
parent
commit
a743b5963e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/main/frontend/text.cljs

+ 1 - 5
src/main/frontend/text.cljs

@@ -247,11 +247,7 @@
   [p]
   (and (not (string/starts-with? p "../"))
        (not (string/starts-with? p "./"))
-       (not (string/starts-with? p "http"))
-       (not
-        (when-let [last-part (last (string/split p #"/"))]
-          ;; a file
-          (string/includes? last-part ".")))))
+       (not (re-find #"(?i)^http[s]?://" p))))
 
 (defn add-timestamp
   [content key value]