After the 3.15 update, one of my pulldata JavaScript functions is no longer working. The functions will work if I revert to the old version (published in 3.12). They were also working in 3.14.
This function works as expected (to remove the dot in the AGOL username):
function findandreplace(inStr, findstr, replacestr) {
return inStr.split(findstr).join(replacestr);
}
This function no longer works with the 3.15 update (to capitalize the first letters in the username) :
function capitalized(make){
return make.replace(/(^|[\s-])\S/g, function (match) {
return match.toUpperCase();
});
}
I would also like to note that both of my functions are in the same JavaScript file.
Is anyone else having issues with their JavaScript functions after the 3.15 update? Is there an issue with my second JavaScript function that will no longer work with the 3.15 update?
I appreciate the help and responses.
Thanks!
Carlos