@localazy/strapi-plugin 0.1.17 → 0.1.18

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "strapi": {
6
6
  "name": "localazy",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const isDynamicZoneKey = (key) => {
4
- const matches = key.match(/\[\d+;\w+\./g);
4
+ const matches = key.match(/\[\d+;[\w-]+\./g);
5
5
  return matches !== null;
6
6
  };
7
7
 
@@ -20,7 +20,7 @@ const pickEntries = (flatten, pickPaths) => {
20
20
  let filteredKey = key;
21
21
  filteredKey = filteredKey.replace(/\[\d+\]/g, "");
22
22
  if (isDynamicZoneKey(key)) {
23
- filteredKey = filteredKey.replace(/\[\d+;\w+\./g, `[`);
23
+ filteredKey = filteredKey.replace(/\[\d+;[\w-]+\./g, `[`);
24
24
  }
25
25
  if (mappedPickPaths.includes(filteredKey)) {
26
26
  pickedEntries[key] = flatten[key];