Skip to content

Commit

Permalink
fix: remove trivia from strings
Browse files Browse the repository at this point in the history
  • Loading branch information
EliTheGingerCat committed Jan 15, 2025
1 parent fe43bba commit 8aec25c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extractor/src/doc_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn parse_type_declaration(
doc_comment: &DocComment,
within_tag: Option<&crate::tags::WithinTag<'_>>
) -> Result<DocEntryKind, Diagnostic> {
let name = declaration.type_name().to_string();
let name = declaration.type_name().token().to_string();

let within = if let Some(within) = within_tag {
within.name.as_str().to_owned()
Expand Down
2 changes: 1 addition & 1 deletion extractor/src/doc_entry/type_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'a> TypeDocEntry<'a> {
});
}
},
_ => doc_entry.lua_type = Some(type_info.to_string())
_ => doc_entry.lua_type = Some(type_info.to_string().trim().to_string())
}
}

Expand Down

0 comments on commit 8aec25c

Please sign in to comment.