Skip to content

@bem/sdk.naming.cell.match: Некорректно обрабатывает файлы с react неймингом #385

@yarastqt

Description

@yarastqt

Если в названии платформы или модификатора содержится знак минуса, то match выдает null:

const reactNaming = require('@bem/sdk.naming.presets/react')
const createMatch = require('@bem/sdk.naming.cell.match')

const match = createMatch(reactNaming)
const { cell } = match('MyBlock/_kind/[email protected]') // => null
const { cell } = match('MyBlock/_kind/MyBlock_kind-name.js') // => null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions