ical-generator 10.2.1-develop.5 → 10.2.1-develop.7

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "description": "ical-generator is a small piece of code which generates ical calendar files",
7
7
  "devDependencies": {
8
- "@date-fns/tz": "^1.4.1",
8
+ "@date-fns/tz": "^1.5.0",
9
9
  "@eslint/js": "^10.0.1",
10
10
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
11
11
  "@qiwi/semantic-release-gh-pages-plugin": "^5.4.3",
@@ -20,8 +20,8 @@
20
20
  "@types/mocha": "^10.0.10",
21
21
  "@types/node": "^25.9.1",
22
22
  "c8": "^11.0.0",
23
- "dayjs": "^1.11.20",
24
- "eslint": "^10.3.0",
23
+ "dayjs": "^1.11.21",
24
+ "eslint": "^10.4.0",
25
25
  "eslint-config-prettier": "^10.1.8",
26
26
  "eslint-plugin-jsonc": "^3.1.2",
27
27
  "eslint-plugin-perfectionist": "^5.9.0",
@@ -30,7 +30,7 @@
30
30
  "husky": "^9.1.7",
31
31
  "license-checker": "^25.0.1",
32
32
  "luxon": "^3.7.2",
33
- "mocha": "^11.7.5",
33
+ "mocha": "^11.7.6",
34
34
  "mochawesome": "^7.1.4",
35
35
  "moment": "^2.30.1",
36
36
  "moment-timezone": "^0.6.2",
@@ -141,5 +141,5 @@
141
141
  "test": "mocha"
142
142
  },
143
143
  "type": "module",
144
- "version": "10.2.1-develop.5"
144
+ "version": "10.2.1-develop.7"
145
145
  }
package/src/tools.ts CHANGED
@@ -210,8 +210,8 @@ export function checkNameAndMail(
210
210
  */
211
211
  export function escape(str: string | unknown, inQuotes: boolean): string {
212
212
  return String(str)
213
- .replace(inQuotes ? /[\\"]/g : /[\\;,]/g, function (match) {
214
- return '\\' + match;
213
+ .replace(inQuotes ? /"/g : /[\\;,]/g, function (match) {
214
+ return inQuotes ? '' : '\\' + match;
215
215
  })
216
216
  .replace(/(?:\r\n|\r|\n)/g, '\\n');
217
217
  }