Skip to content

Commit

Permalink
fix author name not being normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
james-eichelbaum committed Sep 30, 2024
1 parent 123e0a1 commit 28996d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
get_valid_templates,
prefill_template_fields_for_check_only,
)
from ..utils import kebab_case_name, normalize_package_name
from ..utils import kebab_case_name, normalize_display_name, normalize_package_name
from .console import CONTEXT_SETTINGS, abort, echo_info, echo_success, echo_warning

HYPHEN = b'\xe2\x94\x80\xe2\x94\x80'.decode('utf-8')
Expand Down Expand Up @@ -190,6 +190,7 @@ def create(ctx, name, integration_type, location, non_interactive, quiet, dry_ru
author = manifest.get("author", {}).get("name")
if author is None:
abort("Unable to determine author from manifest")
author = normalize_display_name(author)
integration_dir_name = integration_dir_name.removeprefix(f"{author}_")
else:
if os.path.exists(integration_dir):
Expand Down

0 comments on commit 28996d5

Please sign in to comment.