Allow hyphens (-) on pattern id

Created on 5 September 2019, about 5 years ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

Currently hypens - are not allowed on pattern names, although hyphens are common choices as twig filenames words separators, i.e. page-front.twig, search-bar.twig, etc.

Proposed resolution

As UI Patterns change landed few months ago is worth allowing hyphens - on patterns name from this library as well.

Remaining tasks

Review and Merge the patch.

User interface changes

Nope.

API changes

Hyphens are allowed as pattern id (filename).

Data model changes

Nope.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy gambry Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy ralkeon

    I'm sorry bring this up again, but It happened again on another website, and now on drupal 9. I prepared a patch for those who have my issue. This patch will revert this thread change, so be careful.

Production build 0.71.5 2024