@legalplace/prerenderx 3.6.8-staging.2 → 3.6.8-staging.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,9 +81,7 @@ var parseOutputWithVariables = function (output, index, variables, autonums) {
81
81
  parsedOutput = parsedOutput.replace(/\[date\]/g, function () { return '<span data-signature="date"></span>'; });
82
82
  parsedOutput = parsedOutput.replace(new RegExp(yousign_1.yousignTagFieldRegex, "g"), function (v, paramsString) {
83
83
  try {
84
- var parsedParams = (0, yousign_1.parseYousignTag)("[yousign:" + paramsString
85
- .replace(/=&quot;/g, '="')
86
- .replace(/&quot;;/g, '";') + "]");
84
+ var parsedParams = (0, yousign_1.parseYousignTag)("[yousign:" + paramsString.replace(/((=)&quot;)|(&quot;(;|$))/g, '$2"$4') + "]");
87
85
  return (0, yousign_1.convertParamsToHtmlTag)(__assign(__assign({}, parsedParams), { signerIndex: index }));
88
86
  }
89
87
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "3.6.8-staging.2",
3
+ "version": "3.6.8-staging.3",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -167,9 +167,10 @@ export const parseOutputWithVariables: parseOutputT = (
167
167
  (v, paramsString) => {
168
168
  try {
169
169
  const parsedParams = parseYousignTag(
170
- `[yousign:${paramsString
171
- .replace(/=&quot;/g, '="')
172
- .replace(/&quot;;/g, '";')}]`
170
+ `[yousign:${paramsString.replace(
171
+ /((=)&quot;)|(&quot;(;|$))/g,
172
+ '$2"$4'
173
+ )}]`
173
174
  );
174
175
  return convertParamsToHtmlTag({ ...parsedParams, signerIndex: index });
175
176
  } catch (error) {