Skip to content

Commit ba9cb05

Browse files
committed
Allow hyphen
1 parent 1d849c5 commit ba9cb05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.generator/src/generator/templates/function_mappings.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn initialize_api_instance(world: &mut DatadogWorld, api: String) {
2626
{%- for name, versions in get_apis_and_versions(all_apis) %}
2727
{%- set fieldName = "api_"+name|snake_case %}
2828
{%- set structName = name.replace(" ", "").replace("-", "")+"API" %}
29-
"{{name.replace(" ", "")}}" => {
29+
"{{name.replace(" ", "").replace("-", "")}}" => {
3030
{%- for version in versions %}
3131
world.api_instances.{{version}}_{{fieldName}} = Some(datadog{{ version.upper() }}::{{fieldName}}::{{structName}}::with_client_and_config(
3232
world.config.clone(),

0 commit comments

Comments
 (0)