Skip to content

Commit 8081fdd

Browse files
josephperrottthePunderWoman
authored andcommitted
fix(language-service): correct incomplete escaping (#51557)
Correct incomplete escaping and replace all instances of $ PR Close #51557
1 parent 6e5b865 commit 8081fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-service/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function toAttributeCssSelector(attribute: t.TextAttribute|t.BoundAttribute|t.Bo
179179
// Any dollar signs that appear in the attribute name and/or value need to be escaped because they
180180
// need to be taken as literal characters rather than special selector behavior of dollar signs in
181181
// CSS.
182-
return selector.replace('$', '\\$');
182+
return selector.replace(/\$/g, '\\$');
183183
}
184184

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

0 commit comments

Comments
 (0)