mod-build 3.6.94-beta.3 → 3.6.94-beta.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.
@@ -25,14 +25,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
25
25
  if (activeSeason.includes(season)) {
26
26
  const data = JSON.stringify(siteData, null, 4);
27
27
  const heating = '(Heating|heating|calentadores|Calentadores|calefactores|Calefactores)';
28
- const and = '(&|and|y)';
28
+ const and = '(\s&\s|\sand\s|and|\sy\s)'; // eslint-disable-line no-useless-escape
29
29
  const ac = '(AC|Cooling|cooling|aires.*?acondicionados|Aires.*?Acondicionados)';
30
30
  const spaces = '.*?';
31
31
 
32
32
  const regex = new RegExp(`${heating}${spaces}${and}${spaces}${ac}`, 'gm');
33
33
  // Find and reverse the required words in the string using regex group capture
34
34
  const processedData = data.replaceAll(regex, '$3 $2 $1');
35
- // console.log('processedData', processedData);
36
35
  // Convert data into JSON
37
36
  siteData = JSON.parse(processedData);
38
37
  // Find the HVACInterest step and reverse the options array
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.94-beta.3",
3
+ "version": "3.6.94-beta.4",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",