Skip to content

Improve regex to append the data-block-name attribute to the div of the block #42315

@gigitux

Description

@gigitux

The current regex that we have to append the block name to the div of the block is pretty weak.

With the code in the first image, the regex fails, and the data-block-name isn’t appended to the div of the block. With code in the second image, the data-block-name is appended correctly.

Header Header
image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    KirigamiWC Store Editing (FSE)type: refactorThe issue/PR is related to refactoring.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions