@bytebrand/export-cars 1.22.5 → 1.22.6

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": "@bytebrand/export-cars",
3
- "version": "1.22.5",
3
+ "version": "1.22.6",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -116,10 +116,12 @@ export class GoogleTransformer {
116
116
  private getTitle(car: DataSchemes.Car): string {
117
117
  const model = toString(get(car, 'mainData.model', ''));
118
118
  const brand = trim(this.getBrand(car));
119
- const subModel = trim(this.getTrim(car))
119
+ const subModel = trim(this.getTrim(car));
120
120
  const year = this.getYear(car);
121
-
122
- return truncate(trim(escape(join([brand, model, year, subModel], ' '))), { length: 100, separator: ' ' })
121
+
122
+ const titleParts = [brand, model, year, subModel].filter(Boolean);
123
+
124
+ return truncate(trim(escape(join(titleParts, ' '))), { length: 100, separator: ' ' });
123
125
  }
124
126
 
125
127
  private processText(input: string) {