From a9fe8e01d75ce0d88920fcd01618bc667c284b13 Mon Sep 17 00:00:00 2001 From: Umanskiy Aleksey Date: Fri, 18 Oct 2024 11:26:15 +0300 Subject: [PATCH] fix(chronos): fixed chronos test for updated croatian locale --- src/chronos/testing/locale/hr.spec.ts | 4 ++-- src/typeahead/typeahead-container.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chronos/testing/locale/hr.spec.ts b/src/chronos/testing/locale/hr.spec.ts index ff1f7c0159..679898f3ec 100644 --- a/src/chronos/testing/locale/hr.spec.ts +++ b/src/chronos/testing/locale/hr.spec.ts @@ -56,11 +56,11 @@ describe('locale: hr', () => { ['a A', 'pm PM'], ['[the] DDDo [day of the year]', 'the 45. day of the year'], ['LTS', '15:25:50'], - ['L', '14/02/2010'], + ['L', '14.02.2010.'], ['LL', '14 Veljača 2010'], ['LLL', '14 Veljača 2010 15:25'], ['LLLL', 'Nedjelja, 14 Veljača 2010 15:25'], - ['l', '14/2/2010'], + ['l', '14.2.2010.'], ['ll', '14 Velj 2010'], ['lll', '14 Velj 2010 15:25'], ['llll', 'Ned, 14 Velj 2010 15:25'] diff --git a/src/typeahead/typeahead-container.component.ts b/src/typeahead/typeahead-container.component.ts index 384e7b7eaf..032fe11a72 100644 --- a/src/typeahead/typeahead-container.component.ts +++ b/src/typeahead/typeahead-container.component.ts @@ -276,7 +276,7 @@ export class TypeaheadContainerComponent implements OnDestroy { `${itemStr.substring(0, startIdx)}${itemStr.substring(startIdx, startIdx + tokenLen)}` + `${itemStr.substring(startIdx + tokenLen)}`; itemStrHelper = - `${itemStrHelper.substring(0, startIdx)}?????????${'??'.repeat(tokenLen)}???????????` + + `${itemStrHelper.substring(0, startIdx)}????????${'??'.repeat(tokenLen)}??????????` + `${itemStrHelper.substring(startIdx + tokenLen)}`; } }