fix(scraper): sanitize method name
ci/woodpecker/push/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-08-13 03:03:35 +02:00
parent 2e2c8b7d1f
commit d4bbc7bb12
1 changed files with 5 additions and 2 deletions

View File

@ -94,11 +94,14 @@ local function process_item_header_type(node)
end end
local function process_item_header(node) local function process_item_header(node)
local name = extract_first_node_or_fail(node, "strong") local name_node = extract_first_node_or_fail(node, "strong")
-- Remove starting ":" character on method name
local name = extract_inner_floating_text(name_node):gsub("^:", "")
local type = process_item_header_type(node) local type = process_item_header_type(node)
local item_header = { local item_header = {
name = extract_inner_floating_text(name), name = name,
type = type, type = type,
} }