fix(scraper): sanitize method name
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/lint Pipeline was successful
Details
This commit is contained in:
parent
2e2c8b7d1f
commit
d4bbc7bb12
|
@ -94,11 +94,14 @@ local function process_item_header_type(node)
|
|||
end
|
||||
|
||||
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 item_header = {
|
||||
name = extract_inner_floating_text(name),
|
||||
name = name,
|
||||
type = type,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue