es6-css-minify icon indicating copy to clipboard operation
es6-css-minify copied to clipboard

Variables starting with `$` are removed

Open pdonias opened this issue 4 years ago • 1 comments

Describe the bug Variables starting with $ are removed.

To Reproduce

  1. Open a new file
  2. Paste the following code
const $foo = 42
  1. Select the code
  2. Run Minify: Selection
  3. The output is:
const =42;

Expected behavior The following code (or similar):

const $foo=42;

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Version: 3.3.2

pdonias avatar Aug 19 '21 14:08 pdonias

a $ and anything after in a variable is removed, for example

let foo$bar = 0;

becomes

let foo=0;

SArpnt avatar Jan 23 '22 00:01 SArpnt