FE-582: fix refund regexp (#197)

This commit is contained in:
Alexandra Usacheva 2018-03-27 13:43:58 +03:00 committed by GitHub
parent c968e73a99
commit 16c231679f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,8 @@ export class PaymentRefundService {
Validators.required,
Validators.min(10), // TODO: минимальная сумма рефанда?
Validators.max(amount / 100),
Validators.max( availableAmount / 100),
Validators.pattern(/^\d+$/)]
Validators.max(availableAmount / 100),
Validators.pattern(/^\d+\.?\d*$/)]
],
reason: ['']
});