Prechádzať zdrojové kódy

es-toolkit: use U+2063 INVISIBLE SEPARATOR

Simon Legner 6 mesiacov pred
rodič
commit
90fed11831
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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