diff --git a/src-ui/src/app/components/common/input/monetary/monetary.component.ts b/src-ui/src/app/components/common/input/monetary/monetary.component.ts index 6c17b2c76..bc63bc8ca 100644 --- a/src-ui/src/app/components/common/input/monetary/monetary.component.ts +++ b/src-ui/src/app/components/common/input/monetary/monetary.component.ts @@ -35,12 +35,12 @@ export class MonetaryComponent extends AbstractInputComponent { get currencyCode(): string { const focused = document.activeElement === this.currencyField?.nativeElement - if (focused && this.value) return this.value.match(/^([A-Z]{0,3})/)?.[0] + if (focused && this.value) return this.value.match(/^([a-zA-Z]{0,3})/)?.[0] return ( this.value ?.toString() .toUpperCase() - .match(/^([A-Z]{1,3})/)?.[0] ?? this.defaultCurrencyCode + .match(/^([a-zA-Z]{1,3})/)?.[0] ?? this.defaultCurrencyCode ) }