diff --git a/src/adapters/bullhorn/index.js b/src/adapters/bullhorn/index.js
index 7682efbc..d06adb1c 100644
--- a/src/adapters/bullhorn/index.js
+++ b/src/adapters/bullhorn/index.js
@@ -640,9 +640,9 @@ function upsertCallAgentNote({ body, note }) {
if (!!!note) {
return body;
}
- const noteRegex = RegExp('
(.+?)
');
+ const noteRegex = RegExp('Agent notes
([\\s\\S]+?)
');
if (noteRegex.test(body)) {
- body = body.replace(noteRegex, `
${note}
`);
+ body = body.replace(noteRegex, `Agent notes
${note}
`);
}
else {
body += `
${note}
`;
diff --git a/src/adapters/clio/index.js b/src/adapters/clio/index.js
index 3c848de9..f38402f4 100644
--- a/src/adapters/clio/index.js
+++ b/src/adapters/clio/index.js
@@ -474,7 +474,7 @@ function upsertCallAgentNote({ body, note }) {
if (!!!note) {
return body;
}
- const noteRegex = RegExp('- Note: (.+?)\n');
+ const noteRegex = RegExp('- Note: ([\\s\\S]+?)\n');
if (noteRegex.test(body)) {
body = body.replace(noteRegex, `- Note: ${note}\n`);
}
diff --git a/src/adapters/insightly/index.js b/src/adapters/insightly/index.js
index 0e733bbd..8c246d30 100644
--- a/src/adapters/insightly/index.js
+++ b/src/adapters/insightly/index.js
@@ -555,7 +555,7 @@ function upsertCallAgentNote({ body, note }) {
if (!!!note) {
return body;
}
- const noteRegex = RegExp('- Agent note: (.+?)\n');
+ const noteRegex = RegExp('- Agent note: ([\\s\\S]+?)\n');
if (noteRegex.test(body)) {
body = body.replace(noteRegex, `- Agent note: ${note}\n`);
}
diff --git a/src/adapters/pipedrive/index.js b/src/adapters/pipedrive/index.js
index 198e5963..51a1ea43 100644
--- a/src/adapters/pipedrive/index.js
+++ b/src/adapters/pipedrive/index.js
@@ -390,9 +390,9 @@ function upsertCallAgentNote({ body, note }) {
if (!!!note) {
return body;
}
- const noteRegex = RegExp('
(.+?)
');
+ const noteRegex = RegExp('Agent notes
([\\s\\S]+?)
');
if (noteRegex.test(body)) {
- body = body.replace(noteRegex, `
${note}
`);
+ body = body.replace(noteRegex, `Agent notes
${note}
`);
}
else {
body += `
${note}
`;
diff --git a/src/adapters/redtail/index.js b/src/adapters/redtail/index.js
index 5a0bfd44..fa7f43ad 100644
--- a/src/adapters/redtail/index.js
+++ b/src/adapters/redtail/index.js
@@ -371,9 +371,9 @@ function upsertCallAgentNote({ body, note }) {
if (!!!note) {
return body;
}
- const noteRegex = RegExp('
(.+?)
');
+ const noteRegex = RegExp('Agent notes
([\\s\\S]+?)
');
if (noteRegex.test(body)) {
- body = body.replace(noteRegex, `
${note}
`);
+ body = body.replace(noteRegex, `Agent notes
${note}
`);
}
else {
body += `
${note}
`;