@legalplace/prerenderx 3.5.20-alpha.0 → 3.5.20-staging.0

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.
@@ -63,7 +63,7 @@ var parseOutputWithVariables = function (output, index, variables, autonums) {
63
63
  parsedOutput = parsedOutput.replace(/\[signature:date:([0-9]+)\]/g, function (v, signatureId) {
64
64
  return "<span data-signature=\"date\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\"></span>";
65
65
  });
66
- parsedOutput = parsedOutput.replace(/\[signature:mention:([0-9]+):"((?:[^"\\]|\\.)*)"\]/g, function (v, signatureId, mention) {
66
+ parsedOutput = parsedOutput.replace(/\[signature:mention:([0-9]+):(?:&quot;|")((?:[^"&]|\\.)*?)(?:&quot;|")\]/g, function (v, signatureId, mention) {
67
67
  return "<span data-signature=\"mention\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\" data-signer-mention=\"" + mention + "\"></span>";
68
68
  });
69
69
  parsedOutput = parsedOutput.replace(/\[date\]/g, function () { return '<span data-signature="date"></span>'; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "3.5.20-alpha.0",
3
+ "version": "3.5.20-staging.0",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -145,7 +145,7 @@ export const parseOutputWithVariables: parseOutputT = (
145
145
 
146
146
  // Signature mention tag
147
147
  parsedOutput = parsedOutput.replace(
148
- /\[signature:mention:([0-9]+):"((?:[^"\\]|\\.)*)"\]/g,
148
+ /\[signature:mention:([0-9]+):(?:&quot;|")((?:[^"&]|\\.)*?)(?:&quot;|")\]/g,
149
149
  (v, signatureId, mention) =>
150
150
  `<span data-signature="mention" data-signature-id="${signatureId}" data-signer-index="${index}" data-signer-mention="${mention}"></span>`
151
151
  );