Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Problem with template convention for PascalCase component #210

Open
@bisubus

Description

@bisubus

There's a problem with mapping component name to template url.
By default

function dashCase(str) {
  return str.replace(/([A-Z])/g, function ($1) {
    return '-' + $1.toLowerCase();
  });
}

causes PascalCase component to be mapped to ./components/-pascal-case/-pascal-case.html template, which is not supposed to be the correct behaviour (even if camelCase is preferable naming convention).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions