@legalplace/prerenderx 3.5.19 → 3.5.20-alpha.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,6 +63,9 @@ 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) {
67
+ return "<span data-signature=\"mention\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\" data-signer-mention=\"" + mention + "\"></span>";
68
+ });
66
69
  parsedOutput = parsedOutput.replace(/\[date\]/g, function () { return '<span data-signature="date"></span>'; });
67
70
  autonums.forEach(function (currentAn) {
68
71
  if (currentAn[3] === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "3.5.19",
3
+ "version": "3.5.20-alpha.0",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -37,6 +37,5 @@
37
37
  "redux-mock-store": "^1.5.3",
38
38
  "ts-jest": "^24.0.2"
39
39
  },
40
- "prettier": "@legalplace/prettier-config",
41
- "gitHead": "2f6ab750b50aa3d9813f98469d9ede3a16922c47"
40
+ "prettier": "@legalplace/prettier-config"
42
41
  }
@@ -143,6 +143,13 @@ export const parseOutputWithVariables: parseOutputT = (
143
143
  `<span data-signature="date" data-signature-id="${signatureId}" data-signer-index="${index}"></span>`
144
144
  );
145
145
 
146
+ // Signature mention tag
147
+ parsedOutput = parsedOutput.replace(
148
+ /\[signature:mention:([0-9]+):"((?:[^"\\]|\\.)*)"\]/g,
149
+ (v, signatureId, mention) =>
150
+ `<span data-signature="mention" data-signature-id="${signatureId}" data-signer-index="${index}" data-signer-mention="${mention}"></span>`
151
+ );
152
+
146
153
  // Obsolete signature date tag
147
154
  parsedOutput = parsedOutput.replace(
148
155
  /\[date\]/g,