Skip to content

Regex ng5-breadcrumb addFriendlyNameForRouteRegex #104

@BenjaminSymanzik

Description

@BenjaminSymanzik

I´m having an issue with ng5-breadcrumb:

/publisher/detail/uu2k6b3v0au5p106l/settings

This doesn´t do anything at all, even when I´m using ^ and $:

breadcrumbService.addFriendlyNameForRouteRegex('/publisher/detail/[a-z0-9]/settings', 'Settings')

This works:

breadcrumbService.addFriendlyNameForRouteRegex('/publisher/detail/[a-z0-9]', 'Settings')

Output:
publisher >> detail >> Settings >> Settings

So it matches when there is nothing after the regex but documentation says:

breadcrumbService.addFriendlyNameForRouteRegex('/home/users/[0-9]/info', 'Information');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions