It seems I had an error with the replaceAll which is supported on ES12+ thanks for the help. (had to use replace)
It is now working as expected.
Thanks for the help.
.net sdk forum
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.