Browse Source

es-toolkit: use U+2063 INVISIBLE SEPARATOR

Simon Legner 6 tháng trước cách đây
mục cha
commit
90fed11831
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/docs/scrapers/es_toolkit.rb

+ 1 - 1
lib/docs/scrapers/es_toolkit.rb

@@ -35,7 +35,7 @@ module Docs
         type = path.split("/")[0..-2]
         type = type.map(&:capitalize).join(" ")
         # really bad way to sort
-        type = type.gsub(/^(Compat|Error)\b/, "~ \\1")
+        type = type.gsub(/^(Compat|Error)\b/, "\u2063\\1") #  U+2063 INVISIBLE SEPARATOR
       else
         name = type = nil
       end