copy-with-syntax icon indicating copy to clipboard operation
copy-with-syntax copied to clipboard

Invisible characters not supported

Open fabe opened this issue 8 years ago • 2 comments

Currently invisible characters are also copied (screenshot).

Simple fix could be:

// ·
.replace(/\267/g, ' ')
// »
.replace(/\273 /g, '  ')
// ¬
.replace(/\254/g, '')
// ¤
.replace(/\244/g, '')

fabe avatar Apr 27 '16 22:04 fabe

I had the same happen for newlines showing up as: Â

@frantic Would you accept a PR for fixing this?

ericclemmons avatar Jun 06 '16 14:06 ericclemmons

@ericclemmons sure :)

frantic avatar Jun 07 '16 04:06 frantic