@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]+):"((?:[^"
|
|
66
|
+
parsedOutput = parsedOutput.replace(/\[signature:mention:([0-9]+):(?:"|")((?:[^"&]|\\.)*?)(?:"|")\]/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
package/src/libs/OutputParser.ts
CHANGED
|
@@ -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]+):"((?:[^"
|
|
148
|
+
/\[signature:mention:([0-9]+):(?:"|")((?:[^"&]|\\.)*?)(?:"|")\]/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
|
);
|