Skip to content

Commit

Permalink
Fix issue Nuklon#222
Browse files Browse the repository at this point in the history
Update regex for more price formats
  • Loading branch information
SeRi0uS007 committed Aug 20, 2024
1 parent f944a8f commit 15489b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2567,8 +2567,8 @@
}

function getPriceValueAsInt(listing) {
const regex = /\d+[.,]\d{0,2}/gm;
const results = listing.match(regex);
// Match number part from any currency format
const results = listing.match(/\d[0-9 .,]*(\.|,\d{0,2})?/gm);

if (results == null) {
return 0;
Expand Down

0 comments on commit 15489b5

Please sign in to comment.