@lingui/cli 4.11.3 → 4.11.4

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.
@@ -93,11 +93,7 @@ function getCatalogForFile(file, catalogs) {
93
93
  for (const catalog of catalogs) {
94
94
  const catalogFile = `${catalog.path}${catalog.format.getCatalogExtension()}`;
95
95
  const catalogGlob = (0, utils_1.replacePlaceholders)(catalogFile, { locale: "*" });
96
- const matchPattern = (0, utils_1.normalizeRelativePath)(path_1.default.relative(catalog.config.rootDir, catalogGlob))
97
- .replace("(", "\\(")
98
- .replace(")", "\\)")
99
- .replace("[", "\\[")
100
- .replace("]", "\\]");
96
+ const matchPattern = (0, utils_1.normalizeRelativePath)(path_1.default.relative(catalog.config.rootDir, catalogGlob)).replace(/(\(|\)|\[|\])/g, "\\$1");
101
97
  const match = micromatch_1.default.capture(matchPattern, (0, utils_1.normalizeRelativePath)(file));
102
98
  if (match) {
103
99
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/cli",
3
- "version": "4.11.3",
3
+ "version": "4.11.4",
4
4
  "description": "CLI for working wit message catalogs",
5
5
  "keywords": [
6
6
  "cli",
@@ -53,11 +53,11 @@
53
53
  "@babel/parser": "^7.21.2",
54
54
  "@babel/runtime": "^7.21.0",
55
55
  "@babel/types": "^7.21.2",
56
- "@lingui/babel-plugin-extract-messages": "4.11.3",
57
- "@lingui/conf": "4.11.3",
58
- "@lingui/core": "4.11.3",
59
- "@lingui/format-po": "4.11.3",
60
- "@lingui/message-utils": "4.11.3",
56
+ "@lingui/babel-plugin-extract-messages": "4.11.4",
57
+ "@lingui/conf": "4.11.4",
58
+ "@lingui/core": "4.11.4",
59
+ "@lingui/format-po": "4.11.4",
60
+ "@lingui/message-utils": "4.11.4",
61
61
  "babel-plugin-macros": "^3.0.1",
62
62
  "chalk": "^4.1.0",
63
63
  "chokidar": "3.5.1",
@@ -68,7 +68,7 @@
68
68
  "esbuild": "^0.17.10",
69
69
  "glob": "^7.1.4",
70
70
  "inquirer": "^7.3.3",
71
- "micromatch": "4.0.2",
71
+ "micromatch": "^4.0.2",
72
72
  "normalize-path": "^3.0.0",
73
73
  "ora": "^5.1.0",
74
74
  "pathe": "^1.1.0",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "devDependencies": {
82
82
  "@lingui/jest-mocks": "*",
83
- "@lingui/macro": "4.11.3",
83
+ "@lingui/macro": "4.11.4",
84
84
  "@types/convert-source-map": "^2.0.0",
85
85
  "@types/glob": "^8.1.0",
86
86
  "@types/micromatch": "^4.0.1",
@@ -88,5 +88,5 @@
88
88
  "mock-fs": "^5.2.0",
89
89
  "mockdate": "^3.0.5"
90
90
  },
91
- "gitHead": "088efe57f23e88aee7ef72c58a45db427ecd78c9"
91
+ "gitHead": "43d4e671360e8e5f1b820e4e061c1926d95c120b"
92
92
  }