Skip to content

none unique anchors  #341

Closed as not planned
Closed as not planned
@b4ldr

Description

@b4ldr

Describe the Bug

While adding some type definitions to stdlib it was noticed that puppet-strings generates the same anchore for thge following two types

Stdlib::Httpstatus
Stdlib::Http::Status

This seems to be because strings does something equivalent to the following

anchor =- @type.tr(':', '').downcase

i think it would be better to replace the '::' with something like '__' to keep the anchors unique

Expected Behaviour

All types should have unique anchors

Steps to Reproduce

create the following two types and run puppet strings

@summary some documentation 
Stdlib::Httpstatus = String
@summary some other documentation 
Stdlib::Http::Status = String

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions