on 11-16-2018 2:53 AM
Hi,
I trying to use the replace function of js, the when the workflow run the script task it's pop up error.
the code as bellow:
var str = "this is a cat";
var str1 = str.replace('this','that');
the error log:
Error message:An unspecified error occurred. Contact support citing logId 8e8c6a4d-2d8a-49cf-8a3b-772cd1dda9a8 and provide steps to reproduce.Regards,
Guoqing
You found a small bug, I suppose we will fix that as soon as possible. You can get it working when you replace the literal string to search for by a regex, i.e.
str.replace(/this/,'that')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The restrictions are documented here:
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.