FormState.js contains the function:
this.getResource = function () {
return JSON.parse(JSON.stringify(_this.obj).replace(/"\s+|\s+"/g, '"'));
};
The regex replace can change the value of a form element. For example, if you have a textarea with the value foo "bar" foo the regex will change it (remove last space) to foo "bar"foo which is not the desired string.
FormState.jscontains the function:The regex replace can change the value of a form element. For example, if you have a
textareawith the valuefoo "bar" foothe regex will change it (remove last space) tofoo "bar"foowhich is not the desired string.