mod-build 4.0.75-beta.2 → 4.0.75-beta.3

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": "mod-build",
3
- "version": "4.0.75-beta.2",
3
+ "version": "4.0.75-beta.3",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -66,12 +66,11 @@ export default async function(config) {
66
66
 
67
67
  const data = JSON.stringify(config, null, 4);
68
68
  const heating = '(Heating|heating|calentadores|Calentadores|calefactores|Calefactores)';
69
- const and = '(\\s&\\s|\\sand\\s|and|\\sy\\s)'; // eslint-disable-line no-useless-escape
69
+ const andOr = '(\\s&\\s|\\sand\\s|and|\\sy\\s|\\sor\\s|or|\\so\\s|o|\\sÓ\\s|Ó|\\só\\s|ó)'; // eslint-disable-line no-useless-escape
70
70
  const ac = '(AC|Cooling|cooling|aires.*?acondicionados|Aires.*?Acondicionados)';
71
- const or = '(\\sor\\s|or|\\so\\s|o|\\sÓ\\s|Ó|\\só\\s|ó)';
72
71
  const spaces = '.*?';
73
72
 
74
- const regex = new RegExp(`(${heating})${spaces}(${and}|${or})${spaces}(${ac})`, 'gm');
73
+ const regex = new RegExp(`${heating}${spaces}${andOr}${spaces}${ac}`, 'gm');
75
74
  // Find and reverse the required words in the string using regex group capture
76
75
  const processedData = data.replaceAll(regex, '$3 $2 $1');
77
76
  // Convert data into JSON