mod-build 4.0.74 → 4.0.75-beta.2
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/package.json +1 -1
- package/tasks/addSeasonalchanges.js +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -68,9 +68,10 @@ export default async function(config) {
|
|
|
68
68
|
const heating = '(Heating|heating|calentadores|Calentadores|calefactores|Calefactores)';
|
|
69
69
|
const and = '(\\s&\\s|\\sand\\s|and|\\sy\\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|ó)';
|
|
71
72
|
const spaces = '.*?';
|
|
72
73
|
|
|
73
|
-
const regex = new RegExp(
|
|
74
|
+
const regex = new RegExp(`(${heating})${spaces}(${and}|${or})${spaces}(${ac})`, 'gm');
|
|
74
75
|
// Find and reverse the required words in the string using regex group capture
|
|
75
76
|
const processedData = data.replaceAll(regex, '$3 $2 $1');
|
|
76
77
|
// Convert data into JSON
|