Fix handling capitalization in macro names.
All checks were successful
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded

This commit is contained in:
Tom Alexander
2023-10-08 16:51:44 -04:00
parent 9bdec391f1
commit f07d041eb9
5 changed files with 34 additions and 14 deletions

View File

@@ -37,13 +37,13 @@ pub(crate) fn org_macro<'b, 'g, 'r, 's>(
remaining,
OrgMacro {
source: source.into(),
macro_name: macro_name.into(),
macro_args: macro_args
key: macro_name.into(),
args: macro_args
.unwrap_or_else(|| Vec::with_capacity(0))
.into_iter()
.map(|arg| arg.into())
.collect(),
macro_value: Into::<&str>::into(macro_value),
value: Into::<&str>::into(macro_value),
},
))
}