Skip to content

Commit cbf944f

Browse files
authored
Merge pull request #5602 from EdgeApp/matthew/limits
Fix Paybis min/max regex to also support integers
2 parents 253349e + f3d926c commit cbf944f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- fixed: Show deprecated stake policies with allocations
1818
- fixed: No longer show FIO onboarding modal while in Duress Mode.
1919
- fixed: Prevent pin changes which match duress pin.
20+
- fixed: Fix regex for Paybis min/max amounts
2021

2122
## 4.28.1 (2025-05-28)
2223

src/plugins/gui/providers/paybisProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ export const paybisProvider: FiatProviderFactory = {
581581
let lastError
582582
for (const e of pmErrors) {
583583
lastError = e
584-
const maxMatch = e.error.message.match(/^Amount must be less than (\d+\.\d+) ([A-Z]+)/)
585-
const minMatch = e.error.message.match(/^Minimum amount is (\d+\.\d+) ([A-Z]+)/)
584+
const maxMatch = e.error.message.match(/^Amount must be less than (\d+(?:\.\d+)?) ([A-Z]+)/)
585+
const minMatch = e.error.message.match(/^Minimum amount is (\d+(?:\.\d+)?) ([A-Z]+)/)
586586
if (maxMatch != null) {
587587
throw new FiatProviderError({
588588
providerId,

0 commit comments

Comments
 (0)