Browse Source

utf8 is external;

bjorn 1 year ago
parent
commit
82aada78bc
2 changed files with 3 additions and 1 deletions
  1. 2 1
      api/init.lua
  2. 1 0
      api/lovr/utf8/init.lua

+ 2 - 1
api/init.lua

@@ -37535,13 +37535,14 @@ return {
       tag = "libraries",
       summary = "UTF-8 string processing.",
       description = "The `utf8` module is from Lua 5.3.  LÖVR includes it on previous Lua versions to make it easier to work with multi-byte characters that are outside the ASCII range.\n\nSee the [Lua reference manual](https://www.lua.org/manual/5.3/manual.html#6.5) for documentation.",
-      key = "lovr.utf8",
+      key = "utf8",
       enums = {},
       examples = {
         {
           code = "local utf8 = require 'utf8'\n\nlocal str = 'LÖVR'\nprint(string.len(str)) --> prints 5, because Ö takes up 2 bytes\nprint(utf8.len(str))   --> prints 4"
         }
       },
+      external = true,
       functions = {},
       objects = {}
     }

+ 1 - 0
api/lovr/utf8/init.lua

@@ -8,6 +8,7 @@ return {
     See the [Lua reference manual](https://www.lua.org/manual/5.3/manual.html#6.5) for
     documentation.
   ]],
+  external = true,
   example = [[
     local utf8 = require 'utf8'