Skip to content

Commit

Permalink
fix(language-service): correct incomplete escaping (#51557)
Browse files Browse the repository at this point in the history
Correct incomplete escaping and replace all instances of $

PR Close #51557
  • Loading branch information
josephperrott authored and thePunderWoman committed Aug 29, 2023
1 parent 6e5b865 commit 8081fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-service/src/utils.ts
Expand Up @@ -179,7 +179,7 @@ function toAttributeCssSelector(attribute: t.TextAttribute|t.BoundAttribute|t.Bo
// Any dollar signs that appear in the attribute name and/or value need to be escaped because they
// need to be taken as literal characters rather than special selector behavior of dollar signs in
// CSS.
return selector.replace('$', '\\$');
return selector.replace(/\$/g, '\\$');
}

function getNodeName(node: t.Template|t.Element): string {
Expand Down

0 comments on commit 8081fdd

Please sign in to comment.