提交 5159c7d0 编写于 作者: R Ramya Achutha Rao

Escape $ only when wrapping with abbreviation

上级 24ca702d
......@@ -232,7 +232,7 @@ function expandAbbr(input: ExpandAbbreviationInput, newLine: string): string {
let expandedText;
try {
expandedText = expand(input.abbreviation, expandOptions);
if (input.textToWrap !== selectedTextToWrap) {
if (input.textToWrap && input.textToWrap !== selectedTextToWrap) {
expandedText = expandedText.replace(/\$/g, '\\$');
}
} catch (e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册