mod-build 3.7.33 → 3.7.34
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/CHANGELOG.md +4 -0
- package/gulp-tasks/templates.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/gulp-tasks/templates.js
CHANGED
|
@@ -82,11 +82,11 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
82
82
|
siteData.isWarmWeather = true;
|
|
83
83
|
const data = JSON.stringify(siteData, null, 4);
|
|
84
84
|
const heating = '(Heating|heating|calentadores|Calentadores|calefactores|Calefactores)';
|
|
85
|
-
const
|
|
85
|
+
const andOr = '(\\s&\\s|&|\\sand\\s|and|\\sor\\s|or)'; // eslint-disable-line no-useless-escape
|
|
86
86
|
const ac = '(AC|Cooling|cooling|aires.*?acondicionados|Aires.*?Acondicionados)';
|
|
87
87
|
const spaces = '.*?';
|
|
88
88
|
|
|
89
|
-
const regex = new RegExp(`${heating}${spaces}${
|
|
89
|
+
const regex = new RegExp(`${heating}${spaces}${andOr}${spaces}${ac}`, 'gm');
|
|
90
90
|
// Find and reverse the required words in the string using regex group capture
|
|
91
91
|
const processedData = data.replaceAll(regex, '$3 $2 $1');
|
|
92
92
|
// Convert data into JSON
|