@quatrain/messaging 1.1.1 → 1.1.2

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.
@@ -7,7 +7,7 @@ exports.MessageFormatter = void 0;
7
7
  const mustache_1 = __importDefault(require("mustache"));
8
8
  class MessageFormatter {
9
9
  static formatTitle(title) {
10
- return title.replace(/(<([^>]+)>)/gi, '');
10
+ return title.replace(/<[^>]*>/gi, '');
11
11
  }
12
12
  static formatBody(body, data) {
13
13
  return mustache_1.default.render(body, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/messaging",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "AGPL-3.0-only",
5
5
  "description": "Messaging adapters commons",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "author": "Quatrain Développement SAS <developers@quatrain.com>",
22
22
  "dependencies": {
23
- "@quatrain/core": "^1.2.1",
23
+ "@quatrain/core": "^1.2.5",
24
24
  "mustache": "^4.2.0"
25
25
  },
26
26
  "devDependencies": {
@@ -2,7 +2,7 @@ import Mustache from 'mustache'
2
2
 
3
3
  export class MessageFormatter {
4
4
  static formatTitle(title: string) {
5
- return title.replace(/(<([^>]+)>)/gi, '')
5
+ return title.replace(/<[^>]*>/gi, '')
6
6
  }
7
7
 
8
8
  static formatBody(body: string, data?: {}) {