fix: make global_env awesome lowercase
This commit is contained in:
parent
4b8e32e3da
commit
8d3832499a
|
@ -294,7 +294,9 @@ function module.get_doc_from_page(html: string, module_path: string): Node, { No
|
|||
error "The list aren't the same size!"
|
||||
end
|
||||
|
||||
local record_name <const> = utils.capitalize((module_path:gsub(".*%.", "")))
|
||||
-- Awesome is a special case, we don't want to capitalize it.
|
||||
-- I'm too lazy to make a special case for it because this project is in development for far too long and it's getting depressing
|
||||
local record_name <const> = module_path == "awesome" and "awesome" or utils.capitalize((module_path:gsub(".*%.", "")))
|
||||
local module_root <const> = ast.create_node("module", record_name, module_path, false)
|
||||
local other_nodes <const>: { Node } = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue