Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rzhao271 opened this issue Aug 3, 2023 · 0 comments
Open

Comments

@rzhao271
Copy link
Contributor

rzhao271 commented Aug 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant