@bprotsyk/aso-core 2.1.82 → 2.1.83

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.
@@ -290,8 +290,9 @@ async function cloneDirectCampaign(app, platform) {
290
290
  // Для конкретної платформи
291
291
  const platformName = (0, app_1.getPlatformName)(platform);
292
292
  matchingCampaign = allCampaigns.filter((c) => {
293
- // Перевіряємо наявність ID в будь-якому місці
294
- const hasId = c.name.includes(app.id.toString());
293
+ // Точна перевірка ID з межами слів
294
+ const idPattern = new RegExp(`#${app.id}\\b`);
295
+ const hasId = idPattern.test(c.name);
295
296
  // Перевіряємо наявність стрілки
296
297
  const hasArrow = c.name.includes('➥');
297
298
  // Перевіряємо наявність платформи в дужках
@@ -302,8 +303,9 @@ async function cloneDirectCampaign(app, platform) {
302
303
  else {
303
304
  // Для General платформи
304
305
  matchingCampaign = allCampaigns.filter((c) => {
305
- // Перевіряємо наявність ID в будь-якому місці
306
- const hasId = c.name.includes(app.id.toString());
306
+ // Точна перевірка ID з межами слів
307
+ const idPattern = new RegExp(`#${app.id}\\b`);
308
+ const hasId = idPattern.test(c.name);
307
309
  // Перевіряємо наявність стрілки
308
310
  const hasArrow = c.name.includes('➥');
309
311
  // Перевіряємо відсутність дужок з платформою
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.82",
3
+ "version": "2.1.83",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -360,8 +360,9 @@ async function cloneDirectCampaign(app: IApp, platform?: EPlatform): Promise<IKe
360
360
  // Для конкретної платформи
361
361
  const platformName = getPlatformName(platform);
362
362
  matchingCampaign = allCampaigns.filter((c) => {
363
- // Перевіряємо наявність ID в будь-якому місці
364
- const hasId = c.name.includes(app.id.toString());
363
+ // Точна перевірка ID з межами слів
364
+ const idPattern = new RegExp(`#${app.id}\\b`);
365
+ const hasId = idPattern.test(c.name);
365
366
  // Перевіряємо наявність стрілки
366
367
  const hasArrow = c.name.includes('➥');
367
368
  // Перевіряємо наявність платформи в дужках
@@ -371,8 +372,9 @@ async function cloneDirectCampaign(app: IApp, platform?: EPlatform): Promise<IKe
371
372
  } else {
372
373
  // Для General платформи
373
374
  matchingCampaign = allCampaigns.filter((c) => {
374
- // Перевіряємо наявність ID в будь-якому місці
375
- const hasId = c.name.includes(app.id.toString());
375
+ // Точна перевірка ID з межами слів
376
+ const idPattern = new RegExp(`#${app.id}\\b`);
377
+ const hasId = idPattern.test(c.name);
376
378
  // Перевіряємо наявність стрілки
377
379
  const hasArrow = c.name.includes('➥');
378
380
  // Перевіряємо відсутність дужок з платформою