forked from redguardtoo/js-comint
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi, I was testing this gorgeous contribution (I knew about this package from playing with js-comint
on javascript buffers) and I've just found issues when printing, for instance, in the example below, the pound simbol £
though only when working on EMACS. Trying the same example with tsun
on the command line it renders as expected. Any help or clue ??. I'd appreciate it.
function dctoVip(x) {
return x > 20 ? `Yes!! you got 20% OFF, so only have to pay £${x - x * 0.20}` :
`Thanks very much! Shop for additional £{20 - x} and you will get 20% discount??`
}
// testing for instance a shopping of £15
console.log(dctoVip(15))
//output I got
// >> Thanks very much! Shop for additional 5 and you will get 20% discount
output expected:
Thanks very much! Shop for additional £5 and you will get 20% discount
Metadata
Metadata
Assignees
Labels
No labels