@bytebrand/export-cars 1.22.3 → 1.22.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.22.3",
3
+ "version": "1.22.4",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -115,8 +115,11 @@ export class GoogleTransformer {
115
115
 
116
116
  private getTitle(car: DataSchemes.Car): string {
117
117
  const model = toString(get(car, 'mainData.model', ''));
118
-
119
- return trim(escape(join([this.getBrand(car), model], ' ')));
118
+ const brand = this.getBrand(car);
119
+ const year = this.getYear(car);
120
+ const subModel = this.getTrim(car)
121
+
122
+ return truncate(trim(escape(join([brand, model, year, subModel], ' '))), { length: 100, separator: ' ' })
120
123
  }
121
124
 
122
125
  private processText(input: string) {