Skip to content

Attribute in parentheses such as div[(test)] doesn't expand properly #721

Open
@rzhao271

Description

Test case

equal(expand('div[(hello)]'), '<div (hello)=""></div>');

Output

1) Expand Abbreviation
npm ERR!        Markup
npm ERR!          attributes:
npm ERR!
npm ERR!       AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
npm ERR! + actual - expected
npm ERR!
npm ERR! + '<div (hello}=""></div>'
npm ERR! - '<div (hello)=""></div>'
npm ERR!               ^
npm ERR!       + expected - actual
npm ERR! 
npm ERR!       -<div (hello}=""></div>
npm ERR!       +<div (hello)=""></div>
npm ERR!

Expected behaviour

Tests pass and the (hello) part stays the same in the expanded abbreviation.

Actual behaviour

The closing parenthesis ) becomes a closing brace }. Trying to expand div[(hello\)] results in the same issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ya-osnOpen-source Night Yandex event

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions